• LDAP Tomcat defaultRole

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #24775  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.
 #24787  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>

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.