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
Policies.
Thanks, Ciao.
(But it's strange : the tutorial exemple run with this attrs !!?????)
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Python-LDAP-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev