server/sources/ldapuser.py
branchstable
changeset 4716 55b6a3262071
parent 4556 43c14e0e8972
child 4719 aaed3f813ef8
--- 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