edu.vt.middleware.ldap.jaas
Class LdapDnAuthorizationModule

java.lang.Object
  extended by edu.vt.middleware.ldap.jaas.AbstractLoginModule
      extended by edu.vt.middleware.ldap.jaas.LdapDnAuthorizationModule
All Implemented Interfaces:
LoginModule

public class LdapDnAuthorizationModule
extends AbstractLoginModule
implements LoginModule

LdapDnAuthorizationModule provides a JAAS authentication hook into LDAP DNs. No authentication is performed in this module. The LDAP entry dn can be stored and shared with other modules.

Version:
$Revision: 1878 $ $Date: 2011-04-05 11:15:00 -0400 (Tue, 05 Apr 2011) $
Author:
Middleware Services

Field Summary
 
Fields inherited from class edu.vt.middleware.ldap.jaas.AbstractLoginModule
callbackHandler, clearPass, commitSuccess, credentials, defaultRole, logger, LOGIN_DN, LOGIN_NAME, LOGIN_PASSWORD, loginSuccess, principalGroupName, principals, roleGroupName, roles, setLdapCredential, setLdapDnPrincipal, setLdapPrincipal, sharedState, storePass, subject, tryFirstPass, useFirstPass
 
Constructor Summary
LdapDnAuthorizationModule()
           
 
Method Summary
 void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
          
 boolean login()
          
static void main(String[] args)
          This provides command line access to a LdapLoginModule.
 
Methods inherited from class edu.vt.middleware.ldap.jaas.AbstractLoginModule
abort, attributesToRoles, clearState, commit, createAuthenticator, createLdap, getCredentials, logout, storeCredentials
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.security.auth.spi.LoginModule
abort, commit, logout
 

Constructor Detail

LdapDnAuthorizationModule

public LdapDnAuthorizationModule()
Method Detail

initialize

public void initialize(Subject subject,
                       CallbackHandler callbackHandler,
                       Map<String,?> sharedState,
                       Map<String,?> options)

Specified by:
initialize in interface LoginModule
Overrides:
initialize in class AbstractLoginModule

login

public boolean login()
              throws LoginException

Specified by:
login in interface LoginModule
Specified by:
login in class AbstractLoginModule
Throws:
LoginException

main

public static void main(String[] args)
                 throws Exception
This provides command line access to a LdapLoginModule.

Parameters:
args - String[]
Throws:
Exception - if an error occurs


Copyright © 2003-2010 Virginia Tech. All Rights Reserved.