Re: KeyError while performing 'ldapsearch' operation and processing the result data

2009-10-18 Thread Fintan MacMahon
Hi Guruprasad Had the same issue and someone was kind enough to point me in the right direction. Here's what I was told "A uid has to be changed into a legible format Chapter 3 of RFC 4515 (LDAPv3 filter strings) starts with: The string representation of an LDAP search

KeyError while performing 'ldapsearch' operation and processing the result data

2009-09-20 Thread Guruprasad
Hi, I have been trying to write a function to search a LDAP directory by using the python-ldap APIs. Here is the code I have written: def getNextUid(): uidList=[] try: l=ldap.initialize(ldap_host) l.bind_s(ldap_admin_dn,ldap_admin_pass) ldap_result=l.search(ldap_b