From: Stuart B. <stu...@co...> - 2003-03-24 00:00:04
|
On Monday, March 24, 2003, at 12:50 AM, Michael Str=F6der wrote: > Stuart Bishop wrote: > > > > I'm getting stuck with SASL authentication - I believe my code is > > correct so > > I'd like to get an opinion on if the bug lies with my code,=20 > python-ldap > > pre6 > > or CommuniGate Pro (the LDAP server). I can bind using = bind_simple_s. > > Are you sure that CommuniGate Pro is an LDAPv3 server and supports=20 > SASL bind? Can you please check the rootDSE for attributes=20 > supportedSASLMechanisms. The root advertises digest-md5, cram-md5 and ntlm in=20 supportedSASLMechanisms. supportedLDAPversion is [2,3] > > > login_dn =3D 'uid=3Dzen,cn=3Dcommongroundpublishing.com,o=3DCommon= =20 > Ground' > > password =3D 'secret' > > > > l =3D ldap.open('localhost') > > auth =3D ldap.sasl.digest_md5(login_dn,password) > > Note that a SASL user name is normally something like uid@realm. I've tried changing that and am still getting the same error from both=20= the client and the server logs. I'm also getting similar problems using ldapsearch from openldap, so it looks like a problem with openldap, cyrus-sasl or communigate and not a python-ldap issue. I suspect CommuniGate Pro, as I've tried installs of openldap on two difference platforms now so I'll take it to their forum. --=20 Stuart Bishop <stu...@co...> |