Note that there are some explanatory texts on larger screens.

plurals
  1. POImpossible to configure LDAP correctly in JBoss 7.1
    primarykey
    data
    text
    <p>I have to configure LDAP authentication under JBoss 7.1 but I face an issue when I try to use my credentials. My configuration is like that:</p> <pre><code>&lt;login-module code="org.jboss.security.auth.spi.LdapLoginModule" flag="required"&gt; &lt;module-option name="java.naming.factory.initial" value="com.sun.jndi.ldap.LdapCtxFactory"/&gt; &lt;module-option name="java.naming.provider.url" value="ldap://domain.com:389"/&gt; &lt;module-option name="java.naming.security.authentication" value="simple"/&gt; &lt;module-option name="java.naming.referral" value="follow"/&gt; &lt;module-option name="baseFilter" value="(uid={0})"/&gt; &lt;module-option name="baseCtxDN" value="ou=people,dc=domain,dc=com"/&gt; &lt;module-option name="throwValidateError" value="true"/&gt; &lt;module-option name="principalDNPrefix" value="suid="/&gt; &lt;module-option name="principalDNSuffix" value=",ou=people,dc=domain,dc=com"/&gt; &lt;module-option name="searchTimeLimit" value="5000"/&gt; &lt;module-option name="searchScope" value="ONELEVEL"/&gt; &lt;/login-module&gt; </code></pre> <p>"uid" represents username used to login ("surname name") and "suid" represents an unique id. So, when I try to use LDAP in my Java class like that, it works:</p> <pre><code>Hashtable env = new Hashtable(); env.put("java.naming.factory.initial", "com.sun.jndi.ldap.LdapCtxFactory"); env.put("java.naming.provider.url", "ldap://domain.com:389"); env.put("java.naming.security.authentication", "simple"); env.put("java.naming.security.principal", "suid=123456789001234,ou=people,dc=st,dc=com"); env.put("java.naming.referral", "follow"); env.put("java.naming.security.credentials", "123456"); DirContext directoryContext = new InitialDirContext(env); </code></pre> <p>But, I can't configure how JBoss has to transform uid to suid ("surname name" to "123456789001234" for example).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload