server/sources/native.py
branchstable
changeset 8317 9c59258e7798
parent 8235 c2a91d6639d8
child 8349 fdb796435d7b
child 8379 1a3746ec4d65
--- a/server/sources/native.py	Tue Mar 13 15:27:30 2012 +0100
+++ b/server/sources/native.py	Fri Mar 16 17:59:48 2012 +0100
@@ -1590,7 +1590,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: