Package org.springframework.ldap.support

Examples of org.springframework.ldap.support.DistinguishedName


  protected String passwordAttrName = "userPassword";

  protected boolean doVerify(Authentication auth) {
    String userName = (String) auth.getPrincipal();
    String password = (String) auth.getCredentials();
    DistinguishedName dn = new DistinguishedName(nameAttrName + "=" + userName);
    String ldapPassword = null;
    try {
      ldapPassword = (String) ldapTemplate.lookup(dn, new String[] { "userPassword" },
          new ContextMapper() {
            public Object mapFromContext(Object ctx) {
View Full Code Here


  }

  @Override
  protected UserDetail retrieveUser(String username, UsernamePasswordAuthentication authentication)
      throws AuthenticationException {
    DistinguishedName dn = new DistinguishedName(nameAttrName + "=" + username);
    String ldapPassword = null;
    try {
      ldapPassword = (String) ldapTemplate.lookup(dn, new String[] { "userPassword" },
          new ContextMapper() {
            public Object mapFromContext(Object ctx) {
View Full Code Here

TOP

Related Classes of org.springframework.ldap.support.DistinguishedName

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.