Here are the changes I made to get the Sun Dsml Jndi
Provider working with JXplorer:
com.ca.directory.jxplorer.JXOpenConWin:
/**
* Implements ActionListener to enable or disable
the
* DSML text field depending on protocol. If
either LDAP V2 or V3
* is selected...the text field will be disabled.
*/
class VersionActionListener implements
ActionListener
{
/**
* Enables/disables the DSML text field
depending on protocol.
*/
public void actionPerformed(ActionEvent event)
{
if
(!version.getSelectedItem().equals(DSMLV2))
{
dsmlService.setEnabled(false);
dsmlService.setText("");
dsmlService.setBackground(Color.lightGray);
}
else
{
dsmlService.setEnabled(true);
dsmlService.setBackground(Color.white);
}
level.setEnabled(true);
checkSecurityLevel();
}
}
com.ca.commons.jndi.ConnectionData:
...
private static final String DEFAULT_DSML_CTX =
"com.sun.jndi.dsmlv2.soap.DsmlSoapCtxFactory";
private static final String DSML_CTX =
"com.ca.jndiproviders.dsml.DsmlCtxFactory";
... getJNDIEnvironment() ...
if (protocol == DSML) { //TE: set the
protocol to DSML or LDAP.
try {
Class.forName(DEFAULT_DSML_CTX);
env.put(Context.INITIAL_CONTEXT_FACTORY,
DEFAULT_DSML_CTX);
} catch (Throwable t) {
env.put(Context.INITIAL_CONTEXT_FACTORY, DSML_CTX);
}
} else if (protocol == LDAP) {
env.put(Context.INITIAL_CONTEXT_FACTORY,
DEFAULT_CTX);
}
...
jxplorer.bat:
add providerutil.jar to classpath
dsmlv2.jar was already in the classpath
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jxplorer-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jxplorer-devel