Directory Studio
  1. Directory Studio
  2. DIRSTUDIO-182

[Ldap][studio] Use property file to designate ldap context factory etc. instead of hard code

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: studio-connection
    • Labels:
      None

      Description

      In the current studio implementation. Connections classes such as JndiConnectionContext hard code ldap environment variables:

      public void connect( String host, int port, boolean useLdaps, boolean useStartTLS, Control[] connCtls,
      ExtendedProgressMonitor monitor ) throws NamingException

      { this.environment = new Hashtable<String, String>(); this.environment.put( Context.INITIAL_CONTEXT_FACTORY, " com.sun.jndi.ldap.LdapCtxFactory" ); //$NON-NLS-1$ this.environment.put( "java.naming.ldap.version", "3" ); //$NON-NLS-1$ //$NON-NLS-2$ // more logic here...... }

      Using a jndi.properties file would make the service provider configurable. An advice is to use a preference dialog to enter the right provider.

        Activity

        spark shen created issue -
        Stefan Seelmann made changes -
        Field Original Value New Value
        Assignee Stefan Seelmann [ seelmann ]
        Fix Version/s 1.3.0 [ 12313309 ]
        Stefan Seelmann made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Pierre-Arnaud Marcelot made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Stefan Seelmann
            Reporter:
            spark shen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development