searching ldap by guid/uid

Michael Ströder michael at stroeder.com
Thu Aug 30 12:15:01 CEST 2007


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 4515 to find out how to escape hex values
in a search filter.

Function ldap.filter.escape_filter_chars() is helpful for that.

Ciao, Michael.




More information about the python-ldap mailing list