searching ldap by guid/uid
fintan.macmahon at gmail.com
Thu Aug 30 11:53:40 CEST 2007
Hi I'm trying to search eDirectory by the guid/uid. My query would look
something like this.
When I try to decode the guid/uid into hex. I get a type error.
ldap_result_id = l.search(searchBase, searchScope, searchFilter,
File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 478, in
File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 470, in
File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 94, in
result = func(*args,**kwargs)
TypeError: argument 3 must be string without null bytes, not str
I was wondering is it possible to search by a hex value? Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the python-ldap