org.infoglue.cms.security
Class OpenLDAPJNDIBasicAuthorizationModule

java.lang.Object
  extended by org.infoglue.cms.security.JNDIBasicAuthorizationModule
      extended by org.infoglue.cms.security.OpenLDAPJNDIBasicAuthorizationModule
All Implemented Interfaces:
AuthorizationModule

public class OpenLDAPJNDIBasicAuthorizationModule
extends JNDIBasicAuthorizationModule

Author:
Mattias Bogeblad This authentication module authenticates an user against the ordinary infoglue database.

Field Summary
 
Fields inherited from class org.infoglue.cms.security.JNDIBasicAuthorizationModule
extraProperties
 
Constructor Summary
OpenLDAPJNDIBasicAuthorizationModule()
           
 
Method Summary
 java.util.Properties getExtraProperties()
           
protected  java.util.List getRoles(java.lang.String userName)
          Return a List of roles associated with the given User.
 void setExtraProperties(java.util.Properties properties)
           
 
Methods inherited from class org.infoglue.cms.security.JNDIBasicAuthorizationModule
authorizeUser, createInfoGlueGroup, createInfoGluePrincipal, createInfoGlueRole, deleteInfoGlueGroup, deleteInfoGluePrincipal, deleteInfoGlueRole, getAuthorizedInfoGlueGroup, getAuthorizedInfoGluePrincipal, getAuthorizedInfoGlueRole, getFilteredUsers, getGroups, getGroups, getGroupUsers, getRoles, getRoleUsers, getSupportCreate, getSupportDelete, getSupportUpdate, getTransactionObject, getUserAttributes, getUsers, getUsers, setTransactionObject, updateInfoGlueGroup, updateInfoGluePrincipal, updateInfoGluePrincipal, updateInfoGluePrincipalPassword, updateInfoGluePrincipalPassword, updateInfoGlueRole
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenLDAPJNDIBasicAuthorizationModule

public OpenLDAPJNDIBasicAuthorizationModule()
Method Detail

getExtraProperties

public java.util.Properties getExtraProperties()
Specified by:
getExtraProperties in interface AuthorizationModule
Overrides:
getExtraProperties in class JNDIBasicAuthorizationModule

setExtraProperties

public void setExtraProperties(java.util.Properties properties)
Specified by:
setExtraProperties in interface AuthorizationModule
Overrides:
setExtraProperties in class JNDIBasicAuthorizationModule

getRoles

protected java.util.List getRoles(java.lang.String userName)
                           throws javax.naming.NamingException
Return a List of roles associated with the given User. Any roles present in the user's directory entry are supplemented by a directory search. If no roles are associated with this user, a zero-length List is returned.

Overrides:
getRoles in class JNDIBasicAuthorizationModule
Parameters:
context - The directory context we are searching
user - The User to be checked
Throws:
javax.naming.NamingException - if a directory server error occurs


Copyright © 2005 InfoGlue.org All Rights Reserved.