<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Active Directory and admin-console
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/couse1">couse1</a> in <i>Beginner's Corner</i> - <a href="http://community.jboss.org/message/591217#591217">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I'm trying to use AD with my admin-console.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>My login-config.xml :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>  <application-policy name="ldapLogin"></p><p>    <authentication></p><p>    <login-module code="org.jboss.security.auth.spi.LdapExtLoginModule" flag="required"></p><p>        <module-option name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</module-option></p><p>        <module-option name="java.naming.provider.url">ldap://myldaphost:389/</module-option></p><p>        <module-option name="java.naming.security.authentication">simple</module-option></p><p>        <module-option name="bindDN">mydomain\myadmin</module-option></p><p>        <module-option name="bindCredential">mypwd</module-option></p><p>        <module-option name="baseCtxDN">cn=Users,dc=mydomain,dc=fr</module-option></p><p>        <module-option name="baseFilter">(sAMAccountName={0})</module-option></p><p>        <module-option name="rolesCtxDN">cn=Users,dc=mydomain,dc=fr</module-option></p><p>        <module-option name="roleFilter">(member={1})</module-option></p><p>        <module-option name="roleAttributeIsDN">true</module-option></p><p>        <module-option name="roleNameAttributeID">name</module-option></p><p>        </login-module></p><p>    </authentication></p><p></application-policy></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>In my jboss-web.xml : </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><security-domain>java:/jaas/ldapLogin</security-domain></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>And in my components.xml :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><security:identity authenticate-method="#{authenticator.authenticate}" jaas-config-name="ldapLogin"/></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>But when i try to access to my admin-console, i have this message :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>2011-03-04 14:33:02,594 WARN  [org.jboss.seam.Component] (http-127.0.0.1-8080-1) Component class should be serializable: org.jboss.seam.ui.facelet.mockHttpSession</p><p>2011-03-04 14:33:02,653 WARN  [org.jboss.seam.security.permission.PersistentPermissionResolver] (http-127.0.0.1-8080-1) no permission store available - please install a PermissionStore with the name 'org.jboss.seam.security.jpaPermissionStore' if persistent permissions are required.</p><p>2011-03-04 14:33:08,664 INFO  [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-127.0.0.1-8080-1) WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.</p><p>sourceId=null[severity=(WARN 1), summary=(The conversation ended, timed out or was processing another request), detail=(The conversation ended, timed out or was processing another request)]</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>And of course when i put my login and pwd, i have this message : "log in attempt failed, please try again"</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I believe that the admin-console work with seam, so i think that i must to write something in my components.xml but i don't know what?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>any idea?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>thanks in advance</p><p>johan JOSEPH</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/591217#591217">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Beginner's Corner at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>