Revert "dummy login module"

This reverts commit 9a66bbfa3fa8c4a009572e243aa8d6c9aa6ef1bd.
This commit is contained in:
Jyoti Wadhwani 2018-08-02 16:39:27 -07:00
parent 9a66bbfa3f
commit 95d0f55210
2 changed files with 1 additions and 32 deletions

View File

@ -1,30 +0,0 @@
package security;
import javax.security.auth.Subject;
import javax.security.auth.callback.CallbackHandler;
import javax.security.auth.login.LoginException;
import javax.security.auth.spi.LoginModule;
import java.util.Map;
public class DummyLoginModule implements LoginModule {
public void initialize(final Subject subject, final CallbackHandler callbackHandler, final Map<String, ?> sharedState, final Map<String, ?> options) {
}
public boolean login() throws LoginException {
return true;
}
public boolean commit() throws LoginException {
return true;
}
public boolean abort() throws LoginException {
return true;
}
public boolean logout() throws LoginException {
return true;
}
}

View File

@ -1,6 +1,5 @@
// This is just a sample JAAS config that uses LDAP for authentication.
WHZ-Authentication {
security.DummyLoginModule sufficient;
com.sun.security.auth.module.LdapLoginModule sufficient
userProvider="ldap://ldap-svr/ou=people,dc=example,dc=com"
authIdentity="{USERNAME}"