Document directory and improve mapping with ACR
[lgpl/argeo-commons.git] / org.argeo.util / src / org / argeo / osgi / useradmin / DirectoryUserAdmin.java
index 8ed23ad2ec92d747c66b3ba395ddb80844b525fa..1ed3d7ccbf0f9d218012314d7fc8004d544e622d 100644 (file)
@@ -141,7 +141,8 @@ public class DirectoryUserAdmin extends AbstractLdapDirectory implements UserAdm
        public Role getRoleByPath(String path) {
                LdapEntry entry = doGetRole(pathToName(path));
                if (!(entry instanceof Role)) {
-                       throw new IllegalStateException("Path must be a UserAdmin Role.");
+                       return null;
+//                     throw new IllegalStateException("Path must be a UserAdmin Role.");
                } else {
                        return (Role) entry;
                }