diff -r 2279e02e62be -r 9c59258e7798 server/sources/native.py --- 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: