server/sources/ldapfeed.py
changeset 9662 f13ae1fea212
parent 9512 88dc96fc9fc1
child 10011 340d4ef55b6f
equal deleted inserted replaced
9661:c170ec8a4525 9662:f13ae1fea212
   250             self.info('while trying to authenticate %s: %s', user, ex)
   250             self.info('while trying to authenticate %s: %s', user, ex)
   251             raise AuthenticationError()
   251             raise AuthenticationError()
   252         except Exception:
   252         except Exception:
   253             self.error('while trying to authenticate %s', user, exc_info=True)
   253             self.error('while trying to authenticate %s', user, exc_info=True)
   254             raise AuthenticationError()
   254             raise AuthenticationError()
   255         eid = self.repo.extid2eid(self, user['dn'], 'CWUser', session=cnx, insert=False)
   255         eid = self.repo.extid2eid(self, user['dn'], 'CWUser', cnx, insert=False)
   256         if eid < 0:
   256         if eid < 0:
   257             # user has been moved away from this source
   257             # user has been moved away from this source
   258             raise AuthenticationError()
   258             raise AuthenticationError()
   259         return eid
   259         return eid
   260 
   260