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.

------------------------------------------------------------------------------
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
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev

Reply via email to