<div dir="auto">On Mon, 8 Apr 2013 09:10:05 +1000 "Gareth Walters (2K Australia)" <<a href="mailto:gareth.walters@2kaustralia.com">gareth.walters@2kaustralia.com</a>> wrote:<br>> <br>> Package: python-ldap<br>> Version: 2.4.10-1<br>> Severity: important<br>> <br>> Dear Maintainer,<br>> While trying to get a python scrip tof mine to work in Wheezy (have it<br>> running in Squeeze and several other OSs)<br>> I come across this error when using ldaps://<br>> <br>> ldap.SERVER_DOWN: {'desc': "Can't contact LDAP server"}<br>> The server is up and the same script is working on the Squeeze machine.<br>> <br>> Its talking to Windows AD 2008 R2<br>> <br>> the minimal code to reproduce is;<br>> import ldap<br>> myldap=ldap.initialize("ldaps://xx.xx.xx.100")<br>> myldap.bind_s('bindDN','bindPASS')<br>> <br>> but this works<br>> import ldap<br>> myldap=ldap.initialize("ldap://xx.xx.xx.100")<br>> myldap.bind_s('bindDN','bindPASS')<br>> <br>> Does not even get far enough to give a certificate error as would<br>> notmally happen without allow unverified/trusted SSL cert.<br>> <br>> <br>> Output when setting ldap debug on;<br>> <br>> ldap_create<br>> ldap_url_parse_ext(ldaps://xx.xx.xx.105)<br>> ldap_url_parse_ext(ldaps://xx.xx.xx.100)<br>> ldap_sasl_bind<br>> ldap_send_initial_request<br>> ldap_new_connection 1 1 0<br>> ldap_int_open_connection<br>> ldap_connect_to_host: TCP xx.xx.xx.100:636<br>> ldap_new_socket: 3<br>> ldap_prepare_socket: 3<br>> ldap_connect_to_host: Trying xx.xx.xx.100:636<br>> ldap_pvt_connect: fd: 3 tm: -1 async: 0<br>> ldap_int_open_connection<br>> ldap_connect_to_host: TCP xx.xx.xx.105:636<br>> ldap_new_socket: 5<br>> ldap_prepare_socket: 5<br>> ldap_connect_to_host: Trying xx.xx.xx.105:636<br>> ldap_pvt_connect: fd: 5 tm: -1 async: 0<br>> ldap_err2string<br>> Traceback (most recent call last):<br>>   File "./adauth.py", line 71, in <module><br>>  <br>> myldap.bind_s(config.get('ldap','bindDN'),config.get('ldap','bindPASS'))<br>>   File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 222,<br>> in bind_s<br>>     msgid = self.bind(who,cred,method)<br>>   File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 216,<br>> in bind<br>>     return self.simple_bind(who,cred)<br></div>