cubicweb/server/repository.py
changeset 11750 18e7b9829471
parent 11699 b48020a80dc3
child 11756 60fed6272771
--- a/cubicweb/server/repository.py	Fri Sep 30 18:24:17 2016 +0200
+++ b/cubicweb/server/repository.py	Wed Sep 28 22:17:36 2016 +0200
@@ -454,10 +454,10 @@
         # iter on sources_by_uri then check enabled source since sources doesn't
         # contain copy based sources
         for source in self.sources_by_uri.values():
-            if self.config.source_enabled(source) and source.support_entity('CWUser'):
+            if self.config.source_enabled(source):
                 try:
                     return source.authenticate(cnx, login, **authinfo)
-                except AuthenticationError:
+                except (NotImplementedError, AuthenticationError):
                     continue
         else:
             raise AuthenticationError('authentication failed with all sources')