Note that there are some explanatory texts on larger screens.

plurals
  1. POLDAP authentication with JBoss 7
    primarykey
    data
    text
    <p>I want to develop a simple java web application with JBoss 7 server to enable login from username/password entered by the user and authenticate with ldap.</p> <p>So this is what i wrote in web.xml placed in WEB-INF/</p> <pre><code> &lt;login-config&gt; &lt;auth-method&gt;BASIC&lt;/auth-method&gt; &lt;realm-name&gt;Enter user name and password&lt;/realm-name&gt; &lt;/login-config&gt; </code></pre> <p>then added jboss-web.xml in same folder</p> <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;jboss-web&gt; &lt;security-domain&gt;java:/jaas/website-domain&lt;/security-domain&gt; &lt;/jboss-web&gt; </code></pre> <p>Then I added the website-domain realm in standalone.xml</p> <pre><code>&lt;security-domain name="website-domain" cache-type="default"&gt; &lt;authentication&gt; &lt;login-module code="org.jboss.security.auth.spi.LdapExtLoginModule" 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://localhost:10389"/&gt; &lt;module-option name="bindDN" value="ou=people,dc=mycompany,dc=com" /&gt; &lt;module-option name="bindCredential" value="shad"/&gt; &lt;module-option name="allowEmptyPasswords" value="false"/&gt; &lt;module-option name="Context.REFERRAL" value="follow"/&gt; &lt;module-option name="throwValidateError" value="true"/&gt; &lt;module-option name="allowEmptyPasswords" value="true"/&gt; &lt;/login-module&gt; &lt;/authentication&gt; &lt;/security-domain&gt; </code></pre> <p>So how the username and password entered will be sent to these modules ? Or do I have to write a custom JAAS realm ? Is their any working example you guys can share me??</p>
    singulars
    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.
    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