From: jacob m. <mar...@gm...> - 2006-06-17 18:45:10
|
I forgot to add I am using python2.3-ldap 2.0.4-1 on a debian 3.1 system. thanks, jacob On 6/17/06, jacob martinson <mar...@gm...> wrote: > I am unable to bind to an Active Directory system using python-ldap. > > I created a user in AD with search rights and am able to do a simple > bind with the java-based "LDAP Browser" and search/browse the > directory with those credentials. > > When I try to do a simple bind to the directory with python-ldap I > don't get an exception, but when I try to perform the search, I get an > exception indicating I didn't bind successfully: > > Traceback (most recent call last): > File "./tmp", line 29, in ? > search_ad(email='us...@do...',password='passwd') > File "./tmp", line 20, in search_ad > result_type, result_data = l.result(ldap_result_id, 0) > File "/usr/lib/python2.3/site-packages/ldap/ldapobject.py", line > 399, in result > res_type,res_data,res_msgid = self.result2(msgid,all,timeout) > File "/usr/lib/python2.3/site-packages/ldap/ldapobject.py", line > 405, in result2 > return self._ldap_call(self._l.result2,msgid,all,timeout) > File "/usr/lib/python2.3/site-packages/ldap/ldapobject.py", line 94, > in _ldap_call > result = func(*args,**kwargs) > ldap.OPERATIONS_ERROR: {'info': '00000000: LdapErr: DSID-0C090627, > comment: In order to perform this operation a successful bind must be > completed on the connection., data 0, vece', 'desc': 'Operations > error'} > > I am attaching the script that generated this exception. Am I missing > something? > > Thanks! > > jacob > > > |