Class OFBizActiveDirectoryAuthenticationHandler

    • Constructor Detail

      • OFBizActiveDirectoryAuthenticationHandler

        public OFBizActiveDirectoryAuthenticationHandler()
        Public constructor, initializes some required member variables.

    • Method Detail

      • getLdapSearchResult

        public javax.naming.directory.SearchResult getLdapSearchResult​(java.lang.String username,
                                                                       java.lang.String password,
                                                                       org.w3c.dom.Element rootElement,
                                                                       boolean bindRequired)
                                                                throws javax.naming.NamingException
        Description copied from interface: InterfaceOFBizAuthenticationHandler
        Get LDAP search result from a username, password and configuration.
        Specified by:
        getLdapSearchResult in interface InterfaceOFBizAuthenticationHandler
        Specified by:
        getLdapSearchResult in class AbstractOFBizAuthenticationHandler
        Parameters:
        username - String
        password - String
        rootElement - Element root element of ldap config file
        bindRequired - boolean if true, bind; false, just search the user in LDAP
        Returns:
        result SearchResult if ldap search successfully; otherwise, null.
        Throws:
        javax.naming.NamingException