Package org.apache.shiro.realm.ldap

Examples of org.apache.shiro.realm.ldap.LdapContextFactory


  }

  public static void testUserAuthentication(CLdapServerConfiguration ldapServer, LdapUserDAO ldapUserDAO,
                                            LdapGroupDAO ldapGroupDAO) throws LdapDAOException
  {
    LdapContextFactory contextFactory = getLdapContextFactory(ldapServer, false);
    LdapAuthConfiguration authConfig = getLdapAuthConfiguration(ldapServer);

    new DefaultLdapConnector("test", ldapUserDAO, ldapGroupDAO, contextFactory, authConfig);

  }
View Full Code Here


    if (!validationResponse.isValid()) {
      throw new InvalidConfigurationException(validationResponse);
    }

    try {
      LdapContextFactory ldapContextFactory = this.buildDefaultLdapContextFactory(ldapServerId, connectionInfo);
      this.ldapConnectionTester.testConnection(ldapContextFactory);
    }
    catch (MalformedURLException e) {
      // should NEVER hit this
      this.getLogger().debug("LDAP Realm is not configured correctly: " + e.getMessage(), e);
View Full Code Here

TOP

Related Classes of org.apache.shiro.realm.ldap.LdapContextFactory

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.