Examples of LdapContextFactory


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

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

    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

Examples of org.exist.security.realm.ldap.LdapContextFactory

      if (LOG.isDebugEnabled()) {
        LOG.debug("No LdapContextFactory specified - creating a default instance.");
      }

      LdapContextFactory factory = new ContextFactory(configuration);

      this.ldapContextFactory = factory;
    }
    return this.ldapContextFactory;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.