You might also have hit the problem with automatic referral chasing
within libldap as anonymous.
Try this to switch that off:
l = ldap.initialize('ldap://<host>:389')
l.set_option(ldap.OPT_REFERRALS,0)
> try:
> #l.simple_bind_s('[email protected]', getpass.getpass())
> l.simple_bind_s('<place>\<shortname>', getpass.getpass())
> # Works
>
> except Exception, e:
You should rather catch ldap.LDAPError here.
Ciao, Michael.
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Python-LDAP-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev