1 Reply Latest reply on Apr 24, 2008 12:38 PM by Dean Pullen

    LDAP login with Exchange

    Dean Pullen Novice

      Can anyone provide me with a ldap_identity-config.xml or link to help on one, which is configured to use Microsoft Exchange.
      (Specifically Small Business Server, where the credentials are somewhat different).

      Unfortunately, though I've got it working with JBoss and JAAS, I have no clue how to transfer that data to the JBoss Portal LDAP configuration.

      Here's our original JAAS file:

      <!-- A LDAP Active Directory connection. Currently setup for Windows SBS. -->
       <application-policy name="ldap-server-login">
       <authentication>
       <login-module code="com.msp.ejb.security.ADLdapLoginRolesModule" flag="required" >
       <module-option name="java.naming.provider.url">ldap://our-server:389/</module-option>
       <module-option name="rolesCtxDN">OU=SBSUsers,OU=Users,OU=MyBusiness,DC=msphq,DC=local</module-option>
       <module-option name="matchOnUserDN">false</module-option>
       <module-option name="principalDNPrefix">CN=</module-option>
       <module-option name="principalDNSuffix">,OU=SBSUsers,OU=Users,OU=MyBusiness,DC=msphq,DC=local</module-option>
       <module-option name="uidAttributeID">name</module-option>
       <module-option name="roleAttributeID">memberOf</module-option>
       <module-option name="roleAttributeIsDN">true</module-option>
       <module-option name="roleNameAttributeID">name</module-option>
       <!-- MSP specific -->
       <module-option name="dataSourceJNDIName">java:/@deployeddatabase@</module-option>
       <module-option name="callerPrincipalGroup">CallerPrincipal</module-option>
       <module-option name="applicationUserIdQuery">
       select userid from ad_users
       where adguid = ?
       </module-option>
       <module-option name="uniqueUserIdQuery">
       select MAX(userid) from users
       </module-option>
       <module-option name="applicationUserInsert">
       insert into users(userid, username, emailaddress, company, status, failedlogins) values(?,?,?,?,'VALID',0)
       </module-option>
       <module-option name="adUserInsert">
       insert into ad_users(userid, adguid) values(?,?)
       </module-option>
       <module-option name="applicationCompanyCode"></module-option>
       </login-module>
       </authentication>
      


      Thanks...