Internal Attributs
Michael Ströder
michael at stroeder.com
Mon Aug 10 17:57:22 CEST 2009
Nicolas EISEN wrote:
> I need to get internal attributs (createTimeStamp, modifyTimestamp,
> ...).
You mean operational attributes. With OpenLDAP server you have to either
explicitly request them or use '+' in the attribute list.
> res = l.search_s("dc=toph,dc=com", ldap.SCOPE_SUBTREE, "objectclass=*", None, 0);
^^^^
None implies attrs=['*'] but should be
attrs=['*','+'] or attrs=['*','createTimeStamp','modifyTimestamp']
> I try this script on my system, and I don't have this attributs. But
> with phpLDAPadmin or in command line, I can get it :
>
> ldapsearch -D "uid=LDAP Admin,ou=System Accounts,dc=toph,dc=com" -W -b "dc=toph,dc=com" "uid=user1" '*' '+'
So why didn't you try to exactly implement this search in python-ldap?
Ciao, Michael.
More information about the python-ldap
mailing list