searching ldap by guid/uid

2007-08-30 Thread fintan
Hi I'm trying to search eDirectory by the guid/uid. My query would look something like this. (&(!(loginDisabled=True))(!(givenname=System))(|(guid=809c175abd1eda11bb4c003005470881))) When I try to decode the guid/uid into hex. I get a type error. ldap_result_id = l.search(searchBase, searchSc

Re: searching ldap by guid/uid

2007-08-30 Thread Michael Ströder
fintan wrote: > > I was wondering is it possible to search by a hex value? Chapter 3 of RFC 4515 (LDAPv3 filter strings) starts with: The string representation of an LDAP search filter is a string of UTF-8 [RFC3629] encoded Unicode characters [Unicode] [..] So please have a look at RFC 45