From: Michael S. <mi...@st...> - 2009-08-10 15:57:45
|
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. |