portal.security.sp.ldap
Class LdapSecurityService

java.lang.Object
  extended byportal.security.sp.ldap.LdapSecurityService
All Implemented Interfaces:
ISecurityService, IService

public class LdapSecurityService
extends java.lang.Object
implements ISecurityService

This class uses the following registry keys and default values:

Name Type Default Description
portal.security.sp.ldap.ProviderUrl String The provider url to use when connecting to the LDAP directory e.g. ldap://10.0.0.1:389/
portal.security.sp.ldap.ConnectionName String The DN to use when binding to the LDAP directory
portal.security.sp.ldap.ConnectionPassword String The password to use when binding to the LDAP directory
portal.security.sp.ldap.UserBase String Where to look for users, e.g. ou=Users,o=ACME
portal.security.sp.ldap.UserSubtree Boolean Indicates if subtree scope (value true) or one level (value false) should be used when searching for users.
portal.security.sp.ldap.UserAttribute String uid The attribute of the user object that contains the username
portal.security.sp.ldap.RoleBase String Where to look for groups, e.g. ou=Groups,o=ACME
portal.security.sp.ldap.RoleSubtree Boolean Indicates if subtree scope (value true) or one level (value false) should be used when searching for groups.
portal.security.sp.ldap.RoleNameAttribute String cn The attribute of the group object that contains the group name
portal.security.sp.ldap.RoleMemberAttribute String memberUid The attribute of the group object that contains the user members

Author:
Bavo De Ridder

Constructor Summary
LdapSecurityService()
           
 
Method Summary
 void registerLogin(java.lang.String username)
           
 boolean verify(java.lang.String username, java.lang.String password)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapSecurityService

public LdapSecurityService()
Method Detail

verify

public boolean verify(java.lang.String username,
                      java.lang.String password)
               throws java.lang.SecurityException
Specified by:
verify in interface ISecurityService
Throws:
java.lang.SecurityException

registerLogin

public void registerLogin(java.lang.String username)
                   throws java.lang.SecurityException
Specified by:
registerLogin in interface ISecurityService
Throws:
java.lang.SecurityException