# HG changeset patch # User Sylvain Thénault # Date 1261502753 -3600 # Node ID ed99de8f93f2a842a45ce4802c828b93a26031ea # Parent 9fb0d06926ccf1bec993ae9a985a5e5006481157 should turn password into a Binary properly diff -r 9fb0d06926cc -r ed99de8f93f2 server/sources/native.py --- a/server/sources/native.py Tue Dec 22 14:18:48 2009 +0100 +++ b/server/sources/native.py Tue Dec 22 18:25:53 2009 +0100 @@ -289,8 +289,9 @@ raise AuthenticationError('bad login') # passwords are stored using the Bytes type, so we get a StringIO if pwd is not None: - args['pwd'] = crypt_password(password, pwd.getvalue()[:2]) + args['pwd'] = Binary(crypt_password(password, pwd.getvalue()[:2])) # get eid from login and (crypted) password + # XXX why not simply compare password? rset = self.syntax_tree_search(session, self._auth_rqlst, args) try: return rset[0][0]