Class OFBizActiveDirectoryAuthenticationHandler
java.lang.Object
org.apache.ofbiz.ldap.commons.AbstractOFBizAuthenticationHandler
org.apache.ofbiz.ldap.activedirectory.OFBizActiveDirectoryAuthenticationHandler
- All Implemented Interfaces:
InterfaceOFBizAuthenticationHandler
public final class OFBizActiveDirectoryAuthenticationHandler
extends AbstractOFBizAuthenticationHandler
The OFBiz ActiveDirectory Authentication Handler.
The ACL of a user is still controlled by OFBiz.
-
Constructor Summary
ConstructorDescriptionPublic constructor, initializes some required member variables. -
Method Summary
Modifier and TypeMethodDescriptiongetLdapSearchResult
(String username, String password, Element rootElement, boolean bindRequired) Get LDAP search result from a username, password and configuration.Methods inherited from class org.apache.ofbiz.ldap.commons.AbstractOFBizAuthenticationHandler
getPartyId, getSecurityGroup, hasLdapLoggedOut, login, login, logout
-
Constructor Details
-
OFBizActiveDirectoryAuthenticationHandler
public OFBizActiveDirectoryAuthenticationHandler()Public constructor, initializes some required member variables.
-
-
Method Details
-
getLdapSearchResult
public SearchResult getLdapSearchResult(String username, String password, Element rootElement, boolean bindRequired) throws NamingException Description copied from interface:InterfaceOFBizAuthenticationHandler
Get LDAP search result from a username, password and configuration.- Specified by:
getLdapSearchResult
in interfaceInterfaceOFBizAuthenticationHandler
- Specified by:
getLdapSearchResult
in classAbstractOFBizAuthenticationHandler
- Parameters:
username
- Stringpassword
- StringrootElement
- Element root element of ldap config filebindRequired
- boolean if true, bind; false, just search the user in LDAP- Returns:
- result SearchResult if ldap search successfully; otherwise, null.
- Throws:
NamingException
-