Bugs item #2881207, was opened at 2009-10-18 09:19
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=480577&aid=2881207&group_id=55394
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: LDAP Server Version problem
Initial Comment:
Hi,
I also encountered this problem, when I tried to connect to LDAP/MS Active
Directory with tomcat. About 10 minuets after the first login, the connection
was closed. When I tried to connect again I got the same message but I always
succeeded to reconnect despite the error message.
I found out that it might be because we talking to a server that supports only
the LDAP v2.
The solution is to specify the exact LDAP version.
Java Code:
// Set up the environment for creating the initial context
Hashtable env = new Hashtable(11);
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "ldap://localhost:389/o=JNDITutorial");
env.put("java.naming.ldap.version", "2");
// Create the initial context
DirContext ctx = new InitialDirContext(env);
Or, add the following system property value:
-Djava.naming.ldap.version=2
For further information visit the following links:
http://java.sun.com/products/jndi/tutorial/ldap/faq/context.html
http://java.sun.com/products/jndi/tutorial/ldap/misc/version.html
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=480577&aid=2881207&group_id=55394
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Jxplorer-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jxplorer-devel