ldaps and Active Directory

2010-02-01 Thread Patrick A. Treptau
I am pulling my hair out trying to connect via ldaps to one of our AD controllers. Everything works just fine with ldap:389, but as soon as I try to use ldaps:636, I get this: ldap.SERVER_DOWN: {'info': '(unknown error code)', 'desc': "Can't contact LDAP server"} My code is exactly as in "Dem

Re: ldaps and Active Directory

2010-02-01 Thread Michael Ströder
Patrick A. Treptau wrote: > I am pulling my hair out trying to connect via ldaps to one of our AD > controllers. > > host = "ldaps://ad_host:636" You should always use the fully-qualified which is in the CN of the server certificate's subject DN. > #openssl s_client -CAfile path/to/cert.crt -co