Bugs item #2881207, was opened at 2009-10-18 02:19 Message generated for change (Settings changed) made by pegacat 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: Closed >Resolution: Rejected 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 ---------------------------------------------------------------------- >Comment By: Christopher Betts (pegacat) Date: 2011-12-14 17:36 Message: you should be able to select 'v2' in the initial connection screen to get this to happen. (If it doesn't, reopen the bug because it should!) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=480577&aid=2881207&group_id=55394 ------------------------------------------------------------------------------ 10 Tips for Better Server Consolidation Server virtualization is being driven by many needs. But none more important than the need to reduce IT complexity while improving strategic productivity. Learn More! http://www.accelacomm.com/jaw/sdnl/114/51507609/ _______________________________________________ Jxplorer-devel mailing list Jxplorer-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jxplorer-devel