problem binding to AD with known-good credentials

jacob martinson martinson.jacob at
Sat Jun 17 20:45:07 CEST 2006

I forgot to add I am using python2.3-ldap 2.0.4-1 on a debian 3.1 system.


On 6/17/06, jacob martinson <martinson.jacob at> 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='user at',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/", line
> 399, in result
>     res_type,res_data,res_msgid = self.result2(msgid,all,timeout)
>   File "/usr/lib/python2.3/site-packages/ldap/", line
> 405, in result2
>     return self._ldap_call(self._l.result2,msgid,all,timeout)
>   File "/usr/lib/python2.3/site-packages/ldap/", 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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

More information about the python-ldap mailing list