]> 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 15afe08b1fbfbced1f9c2f6e58d07f0fa0f1ca8a..80a9eea30e32ff19eeaae7aa2c94f1895f81da52 100644 (file)
@@ -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();
        }
 }