public class LblLdapAuthentication extends Object implements IAuthentication
Modifier and Type | Field and Description |
---|---|
boolean |
authenticated |
protected String |
authenticationURL |
String |
description |
protected DirContext |
dirContext |
String |
email |
String |
givenName |
protected boolean |
initialized |
String |
organization |
protected String |
searchURL |
String |
sirName |
Constructor and Description |
---|
LblLdapAuthentication() |
Modifier and Type | Method and Description |
---|---|
String |
authenticates(String loginId,
String password)
Authenticates a user's name and password against the system's stored credentials
|
String |
authenticateWithLDAP(String userName,
String passWord)
Authenticate user to the ldap server.
|
protected DirContext |
getAuthenticatedContext(String lblEmployeeNumber,
String passWord)
Get authenticated context from the ldap server.
|
protected DirContext |
getContext()
Get unauthenticated ldap context.
|
String |
getDescription() |
String |
getEmail() |
String |
getGivenName() |
String |
getOrganization() |
String |
getSirName() |
boolean |
isAuthenticated() |
boolean |
isWikiUser(String loginName)
Check if the user is in the settings file specified ldap group before authenticating.
|
protected DirContext dirContext
protected String searchURL
protected String authenticationURL
protected boolean initialized
public boolean authenticated
public String givenName
public String sirName
public String email
public String organization
public String description
public String authenticates(String loginId, String password) throws AuthenticationException
IAuthentication
authenticates
in interface IAuthentication
loginId
- user login Identifierpassword
- user passwordAuthenticationException
- on exception authenticatingpublic String authenticateWithLDAP(String userName, String passWord) throws AuthenticationException
userName
- passWord
- AuthenticationException
public boolean isWikiUser(String loginName) throws AuthenticationException
loginName
- AuthenticationException
public boolean isAuthenticated()
public String getGivenName()
public String getSirName()
public String getEmail()
public String getOrganization()
public String getDescription()
protected DirContext getContext() throws NamingException
DirContext
object.NamingException
protected DirContext getAuthenticatedContext(String lblEmployeeNumber, String passWord) throws NamingException
lblEmployeeNumber
- passWord
- DirContext
object.NamingException
Copyright © 2017. All rights reserved.