org.apache.directory.api.ldap.codec.standalone.StandaloneLdapApiService Java Examples

The following examples show how to use org.apache.directory.api.ldap.codec.standalone.StandaloneLdapApiService. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LdapIntegrationTest.java    From wildfly-camel with Apache License 2.0 5 votes vote down vote up
private LdapContext getWiredContext(int port) throws Exception {
    Hashtable<String, String> env = new Hashtable<String, String>();
    env.put( Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory" );
    env.put( Context.PROVIDER_URL, Network.ldapLoopbackUrl( port ) );
    env.put( Context.SECURITY_PRINCIPAL, ServerDNConstants.ADMIN_SYSTEM_DN );
    env.put( Context.SECURITY_CREDENTIALS, "secret" );
    env.put( Context.SECURITY_AUTHENTICATION, "simple" );
    LdapApiService ldapApiService = new StandaloneLdapApiService();
    return new InitialLdapContext( env, JndiUtils.toJndiControls(ldapApiService, null ) );
}
 
Example #2
Source File: StandaloneLdapCodecServiceTest.java    From directory-ldap-api with Apache License 2.0 4 votes vote down vote up
@BeforeAll
public static void setupLdapApiService() throws Exception
{
    // Load the extension points
    System.setProperty( StandaloneLdapApiService.REQUEST_CONTROLS_LIST,
        "org.apache.directory.api.ldap.codec.controls.cascade.CascadeFactory,"
        + "org.apache.directory.api.ldap.codec.controls.manageDsaIT.ManageDsaITFactory,"
        + "org.apache.directory.api.ldap.codec.controls.search.pagedSearch.PagedResultsFactory,"
        + "org.apache.directory.api.ldap.codec.controls.search.persistentSearch.PersistentSearchFactory,"
        + "org.apache.directory.api.ldap.codec.controls.proxiedauthz.ProxiedAuthzFactory,"
        + "org.apache.directory.api.ldap.codec.controls.sort.SortRequestFactory,"
        + "org.apache.directory.api.ldap.codec.controls.search.subentries.SubentriesFactory,"
        + "org.apache.directory.api.ldap.extras.controls.ad_impl.AdDirSyncRequestFactory,"
        + "org.apache.directory.api.ldap.extras.controls.ad_impl.AdPolicyHintsFactory,"
        + "org.apache.directory.api.ldap.extras.controls.ad_impl.AdShowDeletedFactory,"
        + "org.apache.directory.api.ldap.extras.controls.changeNotifications_impl.ChangeNotificationsFactory,"
        + "org.apache.directory.api.ldap.extras.controls.ppolicy_impl.PasswordPolicyRequestFactory,"
        + "org.apache.directory.api.ldap.extras.controls.permissiveModify_impl.PermissiveModifyFactory,"
        + "org.apache.directory.api.ldap.extras.controls.syncrepl_impl.SyncRequestValueFactory,"
        + "org.apache.directory.api.ldap.extras.controls.transaction_impl.TransactionSpecificationFactory,"
        + "org.apache.directory.api.ldap.extras.controls.vlv_impl.VirtualListViewRequestFactory," );

    System.setProperty( StandaloneLdapApiService.RESPONSE_CONTROLS_LIST,
        "org.apache.directory.api.ldap.codec.controls.search.entryChange.EntryChangeFactory,"
        + "org.apache.directory.api.ldap.codec.controls.search.pagedSearch.PagedResultsFactory,"
        + "org.apache.directory.api.ldap.codec.controls.sort.SortResponseFactory,"
        + "org.apache.directory.api.ldap.extras.controls.ad_impl.AdDirSyncResponseFactory,"
        + "org.apache.directory.api.ldap.extras.controls.passwordExpired_impl.PasswordExpiredResponseFactory,"
        + "org.apache.directory.api.ldap.extras.controls.ppolicy_impl.PasswordPolicyResponseFactory,"
        + "org.apache.directory.api.ldap.extras.controls.syncrepl_impl.SyncDoneValueFactory,"
        + "org.apache.directory.api.ldap.extras.controls.syncrepl_impl.SyncStateValueFactory,"
        + "org.apache.directory.api.ldap.extras.controls.vlv_impl.VirtualListViewResponseFactory" );

    System
        .setProperty(
            StandaloneLdapApiService.EXTENDED_OPERATIONS_LIST,
            "org.apache.directory.api.ldap.extras.extended.ads_impl.cancel.CancelFactory,"
                + "org.apache.directory.api.ldap.extras.extended.ads_impl.certGeneration.CertGenerationFactory,"
                + "org.apache.directory.api.ldap.extras.extended.ads_impl.endTransaction.EndTransactionFactory,"
                + "org.apache.directory.api.ldap.extras.extended.ads_impl.gracefulDisconnect.GracefulDisconnectFactory,"
                + "org.apache.directory.api.ldap.extras.extended.ads_impl.gracefulShutdown.GracefulShutdownFactory,"
                + "org.apache.directory.api.ldap.extras.extended.ads_impl.pwdModify.PasswordModifyFactory,"
                + "org.apache.directory.api.ldap.extras.extended.ads_impl.startTls.StartTlsFactory,"
                + "org.apache.directory.api.ldap.extras.extended.ads_impl.startTransaction.StartTransactionFactory,"
                + "org.apache.directory.api.ldap.extras.extended.ads_impl.storedProcedure.StoredProcedureFactory,"
                + "org.apache.directory.api.ldap.extras.extended.ads_impl.whoAmI.WhoAmIFactory"
                );

    System
    .setProperty(
        StandaloneLdapApiService.INTERMEDIATE_RESPONSES_LIST,
            "org.apache.directory.api.ldap.extras.intermediate.syncrepl_impl.SyncInfoValueFactory" );

}