Re: problem with set_option and tls

2009-05-28 Thread Michael Ströder
Mike Lovell wrote: > Michael Ströder wrote: >> I guess you're using python-ldap built against OpenLDAP 2.3 client libs. >> With OpenLDAP 2.4 connection-specific TLS options should be supported. >> >> > I am using a machine with Ubuntu 9.04 which has the 2.4 OpenLDAP > libraries. Please post the

Re: problem with set_option and tls

2009-05-28 Thread Mike Lovell
Michael Ströder wrote: > I guess you're using python-ldap built against OpenLDAP 2.3 client libs. > With OpenLDAP 2.4 connection-specific TLS options should be supported. > > I am using a machine with Ubuntu 9.04 which has the 2.4 OpenLDAP libraries. I double checked the package dependencies an

Re: problem with set_option and tls

2009-05-28 Thread Michael Ströder
Mike Lovell wrote: > First off, hello everyone. > I am working on some software that uses python-ldap that is trying to > connect to an ldaps server. If I do this sequence > > import ldap > ldap.set_option(ldap.OPT_X_TLS_CACERTFILE, '/path/to/cert') > conn = ldap.initialize('ldaps://server') > co

problem with set_option and tls

2009-05-28 Thread Mike Lovell
First off, hello everyone. I am working on some software that uses python-ldap that is trying to connect to an ldaps server. If I do this sequence import ldap ldap.set_option(ldap.OPT_X_TLS_CACERTFILE, '/path/to/cert') conn = ldap.initialize('ldaps://server') conn.simple_bind_s('uid', 'pass') th