]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.util/src/org/argeo/osgi/useradmin/LdifAuthorization.java
LDAP support for hierarchy unit. Code clean up.
[lgpl/argeo-commons.git] / org.argeo.util / src / org / argeo / osgi / useradmin / LdifAuthorization.java
index 354f8c0e224d333f2f55b3903178c1bc285614d6..80a9eea30e32ff19eeaae7aa2c94f1895f81da52 100644 (file)
@@ -5,7 +5,7 @@ import java.util.Collections;
 import java.util.Dictionary;
 import java.util.List;
 
-import org.argeo.naming.LdapAttrs;
+import org.argeo.util.naming.LdapAttrs;
 import org.osgi.service.useradmin.Authorization;
 import org.osgi.service.useradmin.Role;
 import org.osgi.service.useradmin.User;
@@ -79,7 +79,7 @@ class LdifAuthorization implements Authorization {
                if (displayName == null)
                        displayName = user.getName();
                if (displayName == null)
-                       throw new UserDirectoryException("Cannot set display name for " + user);
+                       throw new IllegalStateException("Cannot set display name for " + user);
                return displayName.toString();
        }
 }