Page 1 of 1

LDAP Tomcat defaultRole

PostPosted:Mon Aug 19, 2013 4:45 pm
by michaeled
Hi all,

I was using the value "defaultRole" with Okm 5.10 and Jboss in server/default/conf/login-config.xml like this :
Code: Select all
<module-option name="defaultRole">UserRole</module-option>
How can i do the same thing with Okm 6.2 and Tomcat ? (i'd like all users that are finded in the ldap are considered like their role + ROLE_USER (as default for everyone)

Thanks for your help,

Michael.

Re: LDAP Tomcat defaultRole

PostPosted:Wed Aug 21, 2013 6:24 pm
by jllort
The solution is
Code: Select all
<beans:property name="defaultRole" value="ROLE_USER" />
into OpenKM.xml section
Code: Select all
<beans:bean class="org.springframework.security.ldap.userdetails.DefaultLdapAuthoritiesPopulator">
....
</beans:bean>

[Solved] Re: LDAP Tomcat defaultRole

PostPosted:Thu Aug 22, 2013 2:19 pm
by michaeled
Super !

It's seems to work perfectly !

Thanks !

Michael.