Description
Hi Stefan,
Here's some JNDI JUnit Testing code that runs fine on
0.9:
package com.pyramidetechnologies.webapp.mdc;
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.NamingException;
import javax.naming.directory.DirContext;
import javax.naming.directory.InitialDirContext;
import junit.framework.TestCase;
public class LDAPTesting extends TestCase {
public DirContext authenticate() {
try
catch (NamingException e)
{ e.printStackTrace(); return null; }}
public void testAddContext() {
DirContext ctx=authenticate();
try
catch (NamingException e)
{ // TODO Auto-generated catch block e.printStackTrace(); } }
}
This code crashes the server (The only thing changed
is this:
ctx.createSubcontext("mail=mail=ole@pyramidetechnologies");
Hope that helps.
Cheers,
- Ole