equal
deleted
inserted
replaced
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 |