server/sources/native.py
changeset 8349 fdb796435d7b
parent 8265 9747ab9230ad
parent 8317 9c59258e7798
child 8381 a682f5cb73f6
--- a/server/sources/native.py	Thu Mar 29 14:20:41 2012 +0200
+++ b/server/sources/native.py	Tue Apr 10 17:03:19 2012 +0200
@@ -1626,7 +1626,7 @@
                 # if pwd is None but a password is provided, something is wrong
                 raise AuthenticationError('bad password')
             # passwords are stored using the Bytes type, so we get a StringIO
-            args['pwd'] = Binary(crypt_password(password, pwd.getvalue()[:2]))
+            args['pwd'] = Binary(crypt_password(password, pwd.getvalue()))
         # get eid from login and (crypted) password
         rset = self.source.syntax_tree_search(session, self._auth_rqlst, args)
         try: