|
From: Michael S. <mi...@st...> - 2009-04-11 12:31:19
|
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('fir...@ex...', getpass.getpass())
> l.simple_bind_s('<place>\<shortname>', getpass.getpass()) # Works
>
> except Exception, e:
You should rather catch ldap.LDAPError here.
Ciao, Michael.
|