<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>I pulled the latest JBoss7.1cr1 code this morning to try to configure a JASPI provider for authentication.<br></div><div><br></div><div><span class="tab"> </span><span class="tab"> </span><span class="tab"> </span><span class="tab"> </span><span class="tab"> </span><span class="tab"><security-domain name="tutor-ldap"><br>
<authentication-jaspi><br>
<login-module-stack name="ldap-stack"><br>
<login-module code="LdapExtended" flag="required"><br>
<module-option name="java.naming.provider.url" value="ldap://localhost:10389"/><br>
<module-option name="bindDN" value="uid=admin,ou=system"/><br>
<module-option name="bindCredential" value="xxx"/><br>
<module-option name="baseCtxDN" value="ou=users,ou=system"/><br>
<module-option name="baseFilter" value="(sn={0})"/><br>
<module-option name="rolesCtxDN" value="ou=groups,ou=system"/><br>
<module-option name="roleFilter" value="(member={1})"/><br>
<module-option name="roleAttributeID" value="cn"/><br>
<module-option name="roleAttributeIsDN" value="false"/><br>
<module-option name="java.naming.referral" value="follow"/><br>
<module-option name="roleRecursion" value="-1"/><br>
<module-option name="searchScope" value="SUBTREE_SCOPE"/><br>
<module-option name="java.naming.security.authentication" value="simple"/><br>
<module-option name="allowEmptyPasswords" value="false"/><br>
</login-module><br>
</login-module-stack><br>
<auth-module
code="org.jboss.as.web.security.jaspi.modules.HTTPFormServerAuthModule"
login-module-stack-ref="ldap-stack"><br>
</auth-module><br>
</authentication-jaspi><br>
</security-domain></span></div><div><br></div><div><br></div><div>Received the following exception:</div><div><br></div><div>java.util.NoSuchElementException: No child 'name' exists<br> at org.jboss.dmr.ModelValue.requireChild(ModelValue.java:362) [jboss-dmr-1.1.1.Final.jar:]<br> at org.jboss.dmr.PropertyModelValue.requireChild(PropertyModelValue.java:156) [jboss-dmr-1.1.1.Final.jar:]<br> at org.jboss.dmr.ModelNode.require(ModelNode.java:812) [jboss-dmr-1.1.1.Final.jar:]<br> at org.jboss.as.security.SecurityDomainAdd.processJASPIAuth(SecurityDomainAdd.java:333) [jboss-as-security-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.security.SecurityDomainAdd.createApplicationPolicy(SecurityDomainAdd.java:213) [jboss-as-security-7.1.0.CR1-SNAPSHOT.jar:]<br> at
org.jboss.as.security.SecurityDomainAdd.launchServices(SecurityDomainAdd.java:167) [jboss-as-security-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.security.SecurityDomainAdd$1.execute(SecurityDomainAdd.java:156) [jboss-as-security-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:359) [jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:254) [jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:190) [jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.security.SecurityDomainAdd$1.execute(SecurityDomainAdd.java:157) [jboss-as-security-7.1.0.CR1-SNAPSHOT.jar:]<br> at
org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:359) [jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:254) [jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:190) [jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.security.SecurityDomainAdd$1.execute(SecurityDomainAdd.java:157) [jboss-as-security-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:359) [jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:254)
[jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:190) [jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.security.SecurityDomainAdd$1.execute(SecurityDomainAdd.java:157) [jboss-as-security-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:359) [jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:254) [jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:190) [jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]<br> at
org.jboss.as.server.AbstractDeploymentChainStep.execute(AbstractDeploymentChainStep.java:46) [jboss-as-server-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:359) [jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:254) [jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:190) [jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.server.AbstractDeploymentChainStep.execute(AbstractDeploymentChainStep.java:46) [jboss-as-server-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:359)
[jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:254) [jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:190) [jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]<br> at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:311) [jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]<br> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [:1.6.0_25]<br> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_25]<br> at java.lang.Thread.run(Unknown Source) [:1.6.0_25]<br> at
org.jboss.threads.JBossThread.run(JBossThread.java:122)<br></div><div><br></div><div>The code is trying to validate that the name attribute exists on the login-module-stack tag but the call to ModelValue.requireChild does nothing more than throw an exception.</div><div><span class="tab"> <br></span></div><div><span class="tab"> </span><span class="tab"> </span><span class="tab">ModelNode requireChild(final String name) throws NoSuchElementException {<br> </span><span class="tab"> </span><span class="tab"> throw new NoSuchElementException("No child '" + name + "' exists");<br> </span><span class="tab"> </span><span class="tab">}</span></div><div><br><span class="tab"></span></div><div><span class="tab">Would like a second pair of eyes on this to make sure something else isn't staring
me in the face before opening a jira issue against cr1.</span></div><div><br><span class="tab"></span></div><div><span class="tab">Thanks</span></div><div><span class="tab">Ben<br></span></div><div><br><span class="tab"></span></div><div><span class="tab"> </span><span class="tab"> </span><span class="tab"> </span><span class="tab"> </span><span class="tab"> </span><span class="tab"><br></span></div><div><br><span class="tab"></span></div><div><br><span class="tab"></span></div><div><br><span class="tab"></span></div><div><br><span class="tab"></span></div><div><br><span class="tab"></span></div><div><br><span class="tab"></span></div><div><span class="tab"><br></span></div></div></body></html>