Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AndFilter filter = new AndFilter();
- filter.and(new EqualsFilter("objectclass", "person")).and(
- new EqualsFilter("uid", authentication.getPrincipal()
- .toString()));
- boolean authenticatedUser = ldapTemplate.authenticate(<DN>, filter.encode(),<password>);
- dn: uid=test ,ou=people,dc=springframework,dc=org
- objectclass: top
- objectclass: person
- objectclass: organizationalPerson
- objectclass: inetOrgPerson
- cn: Rod Johnson
- sn: Johnson
- uid: test
- userPassword: {SHA}a94a8fe5ccb19ba61c4c0873d391e987982fbbd3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement