directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Seelmann (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DIRSTUDIO-182) [Ldap][studio] Use property file to designate ldap context factory etc. instead of hard code
Date Wed, 03 Sep 2008 18:43:44 GMT

     [ https://issues.apache.org/jira/browse/DIRSTUDIO-182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Stefan Seelmann updated DIRSTUDIO-182:
--------------------------------------

    Fix Version/s: 1.3.0
         Assignee: Stefan Seelmann

> [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
>            Assignee: Stefan Seelmann
>             Fix For: 1.3.0
>
>
> 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