Class OFBizLdapAuthenticationHandler

    • Constructor Detail

      • OFBizLdapAuthenticationHandler

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

    • Method Detail

      • getLdapSearchResult

        public 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
        username - String
        password - String
        rootElement - Element root element of ldap config file
        bindRequired - boolean if true, bind; false, just search the user in LDAP
        result SearchResult if ldap search successfully; otherwise, null.