use of org.gluu.site.ldap.OperationsFacade in project oxAuth by GluuFederation.
the class AppInitializer method createLdapAuthEntryManager.
/*
* Utility method which can be used in custom scripts
*/
public LdapEntryManager createLdapAuthEntryManager(GluuLdapConfiguration ldapAuthConfig) {
LdapConnectionProviders ldapConnectionProviders = createAuthConnectionProviders(ldapAuthConfig);
LdapEntryManager ldapAuthEntryManager = new LdapEntryManager(new OperationsFacade(ldapConnectionProviders.getConnectionProvider(), ldapConnectionProviders.getConnectionBindProvider()));
log.debug("Created custom authentication LdapEntryManager: {}", ldapAuthEntryManager);
return ldapAuthEntryManager;
}
use of org.gluu.site.ldap.OperationsFacade in project oxTrust by GluuFederation.
the class Configuration method createLdapEntryManager.
private LdapEntryManager createLdapEntryManager() {
Properties connectionProperties = (Properties) this.ldapConfiguration.getProperties();
Properties decryptedConnectionProperties = PropertiesDecrypter.decryptProperties(connectionProperties, this.cryptoConfigurationSalt);
LDAPConnectionProvider connectionProvider = new LDAPConnectionProvider(decryptedConnectionProperties);
LdapEntryManager ldapEntryManager = new LdapEntryManager(new OperationsFacade(connectionProvider, null));
logger.debug("Created LdapEntryManager: {}", ldapEntryManager);
return ldapEntryManager;
}
use of org.gluu.site.ldap.OperationsFacade in project oxTrust by GluuFederation.
the class AppInitializer method getLdapEntryManager.
@Produces
@ApplicationScoped
@Named(LDAP_ENTRY_MANAGER_NAME)
public LdapEntryManager getLdapEntryManager() {
LdapEntryManager ldapEntryManager = new LdapEntryManager(new OperationsFacade(this.connectionProvider));
log.info("Created {}: {}", new Object[] { LDAP_ENTRY_MANAGER_NAME, ldapEntryManager.getLdapOperationService() });
return ldapEntryManager;
}
use of org.gluu.site.ldap.OperationsFacade in project oxAuth by GluuFederation.
the class Manual method init.
@BeforeClass
public void init() {
final FileConfiguration fileConfiguration = new FileConfiguration(LDAP_FILE_PATH);
final Properties props = PropertiesDecrypter.decryptProperties(fileConfiguration.getProperties(), "passoword");
final LDAPConnectionProvider connectionProvider = new LDAPConnectionProvider(props);
MANAGER = new LdapEntryManager(new OperationsFacade(connectionProvider));
}
use of org.gluu.site.ldap.OperationsFacade in project oxCore by GluuFederation.
the class LdapSampleEntryManager method createLdapEntryManager.
public LdapEntryManager createLdapEntryManager() {
Properties connectionProperties = getSampleConnectionProperties();
LDAPConnectionProvider connectionProvider = createConnectionProvider(connectionProperties);
Properties bindConnectionProperties = prepareBindConnectionProperties(connectionProperties);
LDAPConnectionProvider bindConnectionProvider = createBindConnectionProvider(bindConnectionProperties, connectionProperties);
LdapEntryManager ldapEntryManager = new LdapEntryManager(new OperationsFacade(connectionProvider, bindConnectionProvider));
log.debug("Created LdapEntryManager: " + ldapEntryManager);
return ldapEntryManager;
}
Aggregations