4:
Re: Re: LDAP - Non SSL. What settings?
By: Jun-Dir Liew
|
In response to 3 | 10/02/07 05:58 PM | ||
<Method Name="MQ-LDAP" Enabled="true">
<Param Name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</Param> <Param Name="java.naming.provider.url">ldap://192.168.111.35</Param> <Param Name="java.naming.security.authentication">simple</Param> <Param Name="principalDNPrefix">cn=</Param> <Param Name="principalDNSuffix">,dc=melcoe,dc=local</Param> <Param Name="dsJndiName">java:/jdbc/lams-ds</Param> <Param Name="principalsQuery">select password from lams_user where login=?</Param> <Param Name="rolesQuery"> SELECT DISTINCT r.name,'Roles' FROM lams_user u LEFT OUTER JOIN lams_user_organisation uo USING(user_id) LEFT OUTER JOIN lams_user_organisation_role urr USING(user_organisation_id) LEFT OUTER JOIN lams_role r USING (role_id) WHERE u.login=? </Param> --> If you haven't already, have a look at the wiki page at http://wiki.lamsfoundation.org/display/lams/LDAP, there are two things to consider when using LDAP in 2.0.3. Firstly the passwords sent by LAMS to LDAP are already encrypted - so LDAP can't be expecting a cleartext password. Secondly users have to be created manually on the LAMS side, and then flagged in the database to authenticate with LDAP. Posted by Jun-Dir Liew |
|
||||||||||
|
Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum