From: <mi...@st...> - 2003-03-23 13:50:20
|
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, 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 SASL bind? Can you please check the rootDSE for attributes supportedSASLMechanisms. > login_dn = 'uid=zen,cn=commongroundpublishing.com,o=Common Ground' > password = 'secret' > > l = ldap.open('localhost') > auth = ldap.sasl.digest_md5(login_dn,password) Note that a SASL user name is normally something like uid@realm. Ciao, Michael. |