0 Replies Latest reply on Nov 23, 2009 5:37 AM by Thorsten de vos

    Using localization with LDAP

    Thorsten de vos Newbie

      Hello,

      we used the integrated JBOSS authentication. We created Users and used the locale field to change the language of the portal and our self-developed apps. Now we're going to use LDAP Auth (from AD with LdapExtLoginModule). In our testenviroment it looks like this:

      <application-policy name="portal">
       <authentication>
      
       <login-module code="org.jboss.security.auth.spi.LdapExtLoginModule" flag="required">
       <module-option name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory
       </module-option>
       <module-option name="java.naming.provider.url">ldap://192.168.1.20:389/
       </module-option>
       <module-option name="java.naming.security.authentication">simple</module-option>
       <module-option name="bindDN">Administrator@contoso.intern</module-option>
       <module-option name="bindCredential">...</module-option>
       <module-option name="baseCtxDN">DC=contoso,DC=intern</module-option>
       <module-option name="baseFilter">(sAMAccountName={0})</module-option>
       <module-option name="rolesCtxDN">OU=Roles,OU=JBOSS,DC=contoso,DC=intern</module-option>
       <module-option name="roleFilter">(member={1})</module-option>
       <module-option name="roleAttributeID">cn</module-option>
       <module-option name="roleRecursion">-1</module-option>
       <module-option name="searchTimeLimit">10000</module-option>
       <module-option name="searchScope">SUBTREE_SCOPE</module-option>
       <module-option name="allowEmptyPasswords">false</module-option>
       </login-module>
      
       <login-module code="org.jboss.portal.identity.auth.SynchronizingLoginModule"
       flag="optional">
       <module-option name="synchronizeIdentity">true</module-option>
       <module-option name="synchronizeRoles">true</module-option>
       <module-option name="additionalRole">Authenticated</module-option>
       <module-option name="defaultAssignedRole">User</module-option>
       <module-option name="userModuleJNDIName">java:/portal/UserModule</module-option>
       <module-option name="roleModuleJNDIName">java:/portal/RoleModule</module-option>
       <module-option name="membershipModuleJNDIName">java:/portal/MembershipModule
       </module-option>
       <module-option name="userProfileModuleJNDIName">java:/portal/UserProfileModule
       </module-option>
       </login-module>
      
       </authentication>
       </application-policy>
      



      The authentication works fine, but the localization failed, as we cannot edit the users locale field in Jboss. Is there any oppertunity to use the localization with ldap auth?

      Hopefully I could discribe my problem clearly.

      Thanks in advance for your effort.
      Regards
      Thorsten