Hello!
In our project we are trying to use Novell LDAP for authentification.
We only need to check against the password.
Now we tried springsecurity + ldap but it doesn't work.
There are no errors only the Login answer: Bad Credentials.
What's wrong??
Another aspect is using JLDAP + spring security to write an own "bean".
But where can I find j_spring_security_check servlet?????????
Thanks for helping.
My security-context.xml file
/ottiCode:<beans:bean id="myLdapContextSource" class="org.springframework.security.ldap.DefaultSpringSecurityContextSource"> <beans:constructor-arg value="ldap://192.168.2.1:389/"/> <beans:property name="userDn" value="cn=ProxyUser,o=lab"/> <beans:property name="password" value=""/> <!-- ProxyUser has no password --> </beans:bean> <beans:bean id="ldapUserSearch" class="org.springframework.security.ldap.search.FilterBasedLdapUserSearch"> <beans:constructor-arg index="0" value=""/> <beans:constructor-arg index="1" value="(uid={0})"/> <beans:constructor-arg index="2" ref="myLdapContextSource" /> <beans:property name="searchSubtree" value="true"/> </beans:bean> <beans:bean id="ldapAuthoritiesPopulator" class="org.springframework.security.ldap.populator.DefaultLdapAuthoritiesPopulator"> <beans:constructor-arg ref="myLdapContextSource" /> <beans:constructor-arg value="" /> <beans:property name="groupSearchFilter" value="(uniquemember={0})"/> <beans:property name="groupRoleAttribute" value="cn" /> <beans:property name="rolePrefix" value="ROLE_"/> <beans:property name="searchSubtree" value="false"/> <beans:property name="convertToUpperCase" value="true"/> </beans:bean> <beans:bean id="userDetailsService" class="org.springframework.security.userdetails.ldap.LdapUserDetailsService"> <beans:constructor-arg index="0" ref="ldapUserSearch" /> <beans:constructor-arg index="1" ref="ldapAuthoritiesPopulator" /> </beans:bean> <authentication-manager alias="authenticationManager" /> <authentication-provider user-service-ref='userDetailsService' > <password-encoder hash="plaintext"/> </authentication-provider>


Reply With Quote