[datafeed] give a dictionary as sourceparams to avoid crash if attempt to import the user is done
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 03 May 2012 15:48:54 +0200
changeset 8384 98782f17dd84
parent 8383 3f34d69e0c22
child 8385 5a261bac2962
[datafeed] give a dictionary as sourceparams to avoid crash if attempt to import the user is done
server/ldaputils.py
--- a/server/ldaputils.py	Thu May 03 15:47:29 2012 +0200
+++ b/server/ldaputils.py	Thu May 03 15:48:54 2012 +0200
@@ -216,7 +216,7 @@
         except Exception:
             self.error('while trying to authenticate %s', user, exc_info=True)
             raise AuthenticationError()
-        eid = self.repo.extid2eid(self, user['dn'], 'CWUser', session)
+        eid = self.repo.extid2eid(self, user['dn'], 'CWUser', session, {})
         if eid < 0:
             # user has been moved away from this source
             raise AuthenticationError()