Uploaded image for project: 'Directory Studio'
  1. Directory Studio
  2. DIRSTUDIO-182

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • studio-connection
    • 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.

      Attachments

        Activity

          People

            seelmann Stefan Seelmann
            spark shen spark shen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: