Ldap over SSL
Sylvain Pereira
spereira at soleri.com
Fri Apr 26 11:24:33 CEST 2002
> >
> > I am developping a python cgi application to administrate an ldap
> server for
> > a customer.
>
> What's the LDAP server product and OS?
Well it's iPlanet Directory Server 5.1 on SunOS 8, and I already checked
the SSL connection with a Java program (I am new to python).
The python cgi runs on an Irix 6.5
> See Demo/initialize.py for various examples using LDAP over SSL (LDAPS)
> or
> StartTLS extended operation (RFC2830).
Thanks, I also took a look a the list archives ("TLS Context").
Still, I get the following error when testing with the python interpreter :
############################################
>>> import ldap
>>> print ldap.__version__
2.0.0pre04
>>> ldap.set_option
(ldap.OPT_X_TLS_CACERTFILE,'/usr/freeware/apache/conf/cert7.db')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/freeware/lib/python2.1/site-packages/ldap/functions.py", line 101,
in set_option
_ldap_call(_ldap.set_option,option,invalue)
File "/usr/freeware/lib/python2.1/site-packages/ldap/__init__.py", line 31,
in _ldap_call
result = apply(func,args,kwargs)
ldap.LDAPError: {'errnum': -1}
############################################
Any idea ?
More information about the python-ldap
mailing list