--- a/server/sources/ldapuser.py Fri Feb 26 09:54:32 2010 +0100
+++ b/server/sources/ldapuser.py Fri Feb 26 13:09:12 2010 +0100
@@ -448,12 +448,12 @@
def _auth_cram_md5(self, conn, user, userpwd):
from ldap import sasl
auth_token = sasl.cram_md5(user['dn'], userpwd)
- conn.sasl_interactive_bind_s('', auth_tokens)
+ conn.sasl_interactive_bind_s('', auth_token)
def _auth_digest_md5(self, conn, user, userpwd):
from ldap import sasl
auth_token = sasl.digest_md5(user['dn'], userpwd)
- conn.sasl_interactive_bind_s('', auth_tokens)
+ conn.sasl_interactive_bind_s('', auth_token)
def _auth_gssapi(self, conn, user, userpwd):
# print XXX not proper sasl/gssapi