I've found out. Here it is:
<bean id="securityManager"
class="org.apache.shiro.web.mgt.DefaultWebSecurityManager">
<property name="realm" ref="myLdapRealm" />
<property name="sessionMode" value="native" />
</bean>
<bean id="myLdapRealm" class="org.apache.shiro.realm.ldap.JndiLdapRealm">
<property name="userDnTemplate"
value="uid={0},ou=Users,dc=jbcppets,dc=com" />
<property name="contextFactory" ref="myContextFactory"/>
</bean>
<bean id="myContextFactory"
class="org.apache.shiro.realm.ldap.JndiLdapContextFactory">
<property name="url"
value="ldap://localhost:10389/dc=jbcppets,dc=com"/>
</bean>
--
View this message in context:
http://shiro-user.582556.n2.nabble.com/What-is-the-configuration-for-ldap-authentication-with-spring-tp6656846p6663559.html
Sent from the Shiro User mailing list archive at Nabble.com.