|
From: <mi...@st...> - 2002-04-26 10:01:03
|
Sylvain Pereira wrote: >>>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 If it's running on a Unix platform iDS 5.1 should also support StartTLS extended operation (not available with Win32 version) which is the standard track (see RFC2830). >>>>import ldap >>>>print ldap.__version__ >>> > 2.0.0pre04 > >>>>ldap.set_option >>> > (ldap.OPT_X_TLS_CACERTFILE,'/usr/freeware/apache/conf/cert7.db') That's a Netscape certificate DB for Netscape's NSS lib. Something completely different. OpenLDAP2 uses OpenSSL as SSL lib. Therefore just use a "PEM file" containing the certificate. The same for the cert/key when using client certs for authentication. Ciao, Michael. |