This article contains some configuration examples for using LDAP for authentication with ONEWEB 4.0. Try to configure this step.
Basic information from a connection would be defined with the following attributes:
security-domain name: The attribute name for ONEWEB 4.0 fixed as "LDAPAuthLocal" reference from jboss-web.xml
url: The url of the LDAP server to connect to. Ex. "ldap://[Server IP Address]:[Port]"
bindDN: The distinguished name to use when establishing a connection to the server. When using a bindDN it usually comes with a password associated with it.
bindCredential: The password required for bindDN name specified to establish the connection to the server.
baseCtxDN: The starting point, where it will start searching.
baseFilter: A search filter used to locate the context of the user to authenticate. The input username/userDN as obtained from the login module callback will be substituted into the filter anywhere a {0} expression is seen. This substitution behavior comes from the standard DirContext.search(Name, String, Object[], SearchControls cons) method. A common example for the search filter is (uid={0})
rolesCtxDN: A search filter used to locate the roles associated with the authenticated user.
roleAttributeID: The name of the role attribute of the context which corresponds to the name of the role.
searchScope: Use default scope is SUBTREE_SCOPE.
For Wildfly configure "stanalone.xml" tag "<profile>" sub tag "<subsystem>" try to insert <security-domains>. See example below
Note: some difference LDAP Server if use Apache Directory or OpenLdap change module option name "baseFilter" = "(uid={0})", "roleAttributeID" = "CN"
Specify the JBoss Security Domain In the jboss-web.xml file, specify the required security domain. see example below