LDAP support for hierarchy unit. Code clean up.
[lgpl/argeo-commons.git] / org.argeo.util / src / org / argeo / util / naming / AuthPassword.java
index 973b90f0ff0bf63873cfce7c4b33202454e824d9..d8792729f3a4248455a00b1b736f7cf5d88d5684 100644 (file)
@@ -14,8 +14,6 @@ import javax.security.auth.callback.NameCallback;
 import javax.security.auth.callback.PasswordCallback;
 import javax.security.auth.callback.UnsupportedCallbackException;
 
-import org.argeo.osgi.useradmin.UserDirectoryException;
-
 /** LDAP authPassword field according to RFC 3112 */
 public class AuthPassword implements CallbackHandler {
        private final String authScheme;
@@ -118,7 +116,7 @@ public class AuthPassword implements CallbackHandler {
                        }
                        return null;
                } catch (NamingException e) {
-                       throw new UserDirectoryException("Cannot check attribute", e);
+                       throw new IllegalStateException("Cannot check attribute", e);
                }
        }