Hello all,<br>I am using Negotiate and have successfully gotten all three auth tests to work using the jboss-negotiate-toolkit after some trials.<br><br>Now I am attempting to search the Active Directory rather than the user-roles.properties file.<br>
I am using chained configuration from the docs.<br><br>Here is a snip from the login-config.xml file:<br><br><span style="color: rgb(0, 0, 153);"> <application-policy name="host"></span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> <authentication></span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> <login-module code="com.sun.security.auth.module.Krb5LoginModule" flag="required"></span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> <module-option name="storeKey">true</module-option></span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> <module-option name="useKeyTab">true</module-option></span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> <module-option name="principal">host/<a href="mailto:jportal@MYCO.COM">jportal@MYCO.COM</a></module-option></span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> <module-option name="keyTab">/home/admin/jportal.keytab</module-option></span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> <module-option name="doNotPrompt">true</module-option></span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> <module-option name="debug">true</module-option></span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> </login-module></span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> </authentication></span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> </application-policy></span><br style="color: rgb(0, 0, 153);">
<br style="color: rgb(0, 0, 153);"><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"><application-policy name="SPNEGO"></span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> <authentication></span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> <login-module code="org.jboss.security.negotiation.spnego.SPNEGOLoginModule" flag="requisite"></span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> <module-option name="password-stacking">useFirstPass</module-option></span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> <module-option name="serverSecurityDomain">host</module-option></span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> </login-module></span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> <login-module code="org.jboss.security.negotiation.AdvancedLdapLoginModule" flag="required"></span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> <module-option name="password-stacking">useFirstPass</module-option></span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> <module-option name="bindAuthentication">GSSAPI</module-option></span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> <module-option name="jaasSecurityDomain">host</module-option></span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> <module-option name="java.naming.provider.url">ldap://dc:389</module-option></span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> <module-option name="baseCtxDN">CN=Users,DC=dc,DC=myco,DC=com</module-option></span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> <module-option name="baseFilter">(userPrincipalName={0})</module-option></span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> <module-option name="roleAttributeID">memberOf</module-option></span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> <module-option name="roleAttributeIsDN">true</module-option></span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> <module-option name="roleNameAttributeID">cn</module-option></span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> <module-option name="recurseRoles">true</module-option></span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> </login-module></span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> </authentication></span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"></application-policy></span><br><br>Do I need the first application policy (host)? <br>
<br>My error is as follows:<br><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">/error</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">...skipping</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);"> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> at java.lang.Thread.run(Unknown Source)</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">Caused by: javax.naming.NamingException: [LDAP: error code 1 - 00000000: LdapErr: DSID-0C090627, comment: In order to perform this operatio</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">n a successful bind must be completed on the connection., data 0, vece]; remaining name 'OU=Users,DC=myco,DC=com'</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);"> at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);"> at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> at com.sun.jndi.ldap.LdapCtx.searchAux(Unknown Source)</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);"> at com.sun.jndi.ldap.LdapCtx.c_search(Unknown Source)</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> at com.sun.jndi.ldap.LdapCtx.c_search(Unknown Source)</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);"> at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(Unknown Source)</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(Unknown Source)</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);"> at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(Unknown Source)</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> at javax.naming.directory.InitialDirContext.search(Unknown Source)</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);"> at org.jboss.security.negotiation.AdvancedLdapLoginModule.findUserDN(AdvancedLdapLoginModule.java:505)</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> ... 34 more</span><br>
<br>Any ideas what may be wrong?<br><br>Thanks!<br>