neisen at linbox.com
Mon Aug 10 18:03:33 CEST 2009
Michael Ströder a écrit :
> 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.
Great !!! It's work !
I spend the day to found, I'm idiot ... ^^
I'm probationer and I must implement web interface of LDAP Password
(But it's strange : the tutorial exemple run with this attrs !!?????)
More information about the python-ldap