--- a/src/pyams_security/plugin/admin.py Sat Feb 28 15:22:21 2015 +0100
+++ b/src/pyams_security/plugin/admin.py Sat Feb 28 15:22:56 2015 +0100
@@ -12,6 +12,7 @@
__docformat__ = 'restructuredtext'
+
# import standard library
# import interfaces
@@ -63,6 +64,8 @@
def get_principal(self, principal_id):
if not self.enabled:
return None
+ if not principal_id.startswith(self.prefix + ':'):
+ return None
prefix, login = principal_id.split(':', 1)
if (prefix == self.prefix) and (login == self.login):
return PrincipalInfo(id=principal_id,