From: Bjorn O. G. <bjo...@it...> - 2005-05-24 12:58:32
|
Daniel LB: > Yes, I am doing this with AD. > I tried what you said and the error message I got back was > WILL_NOT_PERFORM (Server unwilling to perform), so I'm guessing it's > because I don't use any encryption on my connection. >=20 > But, since I'm only connecting to localhost, is encryption really neces= sary? Depends on wether your server allows non-encrypted authentication or not. In general, I wouldn't to non-anonumous non-encrypted authenticaion. > Anyway.. could you give me an example of how you establish your > encrypted connection? TLS: l =3D ldap.open("localhost") l.start_tls_s() # Now we've got tls over port 389 l.simple_bind("someuser","secret") SSL: l =3D ldap.initialize("localhost") # use fqdn and/or cn in the certificat= e here # That's it.. we've got ldap using SSL -> Secure socket layer l.simple_bind("someuser","secret") --=20 Regards =20 Bj=F8rn Ove Gr=F8tan |