Issues

ZF-9590: Zend_Ldap_Attribute: Getting ActiveDirectory DateTime Values

Issue Type: Patch Created: 2010-04-01T13:45:45.000+0000 Last Updated: 2010-04-18T11:43:37.000+0000 Status: Resolved Fix version(s): - 1.11.0 (02/Nov/10)

Reporter: Ryan Panning (panman) Assignee: Stefan Gehrig (sgehrig) Tags: - Zend_Ldap

Related issues: Attachments: - fromDateTime.patch

Description

Active Directory adds an additional string to the human readable datetime values. Not sure why it is this way but a couple attributes in particular do this; whenchanged & whencreated. Patch attached to modify the PREG pattern in _valueFromLdapDateTime().

Still need to figure out how to handle the _valueToLdapDateTime() method though.

OpenLDAP Format: YYYYMMDDHHMMSS([+-]NNNN|Z) ActiveDirectory Format: YYYYMMDDHHMMSS.0([+-]NNNN|Z)

Comments

Posted by Ryan Panning (panman) on 2010-04-01T13:46:47.000+0000

Patch to modify PREG pattern and $timezone array index.

Posted by Ryan Panning (panman) on 2010-04-01T13:50:24.000+0000

Also, other datetime attributes stored in ActiveDirectory appear to be encoded and would need to be decoded via command line call on Windows. Need to research this further.

Some fields: badpasswordtime, lastlogontimestamp, & pwdlastset

Posted by Ryan Panning (panman) on 2010-04-01T13:51:34.000+0000

Also, that patch is for Zend_Ldap_Attribute, did not specified anywhere else. Sorry

Posted by Stefan Gehrig (sgehrig) on 2010-04-18T11:43:35.000+0000

fixed in r21937 in trunk - merge to 1.10-release branch will follow

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts