directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "spark shen (JIRA)" <j...@apache.org>
Subject [jira] Created: (DIRSTUDIO-182) [Ldap][studio] Use property file to designate ldap context factory etc. instead of hard code
Date Wed, 05 Sep 2007 09:14:33 GMT
[Ldap][studio] Use property file to designate ldap context factory etc. instead of hard code

---------------------------------------------------------------------------------------------

                 Key: DIRSTUDIO-182
                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-182
             Project: Directory Studio
          Issue Type: Improvement
          Components: studio-connection
            Reporter: spark shen


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message