server/sources/ldapuser.py
changeset 975 0928daea04e9
parent 938 a69188963ccb
child 1016 26387b836099
child 1238 fa29b5b60107
--- a/server/sources/ldapuser.py	Thu Feb 26 13:12:39 2009 +0100
+++ b/server/sources/ldapuser.py	Thu Feb 26 13:31:13 2009 +0100
@@ -632,7 +632,10 @@
             filter = '(%s%s)' % (self._ldap_attrs[relation.r_type],
                                  rhs.accept(self))
         except KeyError:
-            assert relation.r_type == 'password' # 2.38 migration
+            # unsupported attribute
+            self.source.warning('%s source can\'t handle relation %s, no '
+                                'results will be returned from this source',
+                                self.source.uri, relation)
             raise UnknownEid # trick to return no result
         return filter