Hashtable envFinal = new Hashtable(); envFinal.putAll( extras ); envFinal.putAll( env ); envFinal.put( Context.PROVIDER_URL, "ou=system" ); envFinal.put( EveContextFactory.WKDIR_ENV, "target" + File.separator + "eve" ); envFinal.put( Context.INITIAL_CONTEXT_FACTORY, "org.apache.eve.jndi.EveContextFactory" ); envFinal.putAll( overrides ); InitialContext initialContext = new InitialContext( envFinal ); return sysRoot = ( LdapContext ) initialContext.lookup( "" );
Hashtable env = new Hashtable(); env.put( Context.SECURITY_PRINCIPAL, user ); env.put( Context.SECURITY_CREDENTIALS, passwd ); return setSysRoot( env );
    protected LdapContext setSysRoot( Hashtable env ) throws NamingException    {        Hashtable envFinal = new Hashtable();        envFinal.putAll( extras );        envFinal.putAll( env );        envFinal.put( Context.PROVIDER_URL, "ou=system" );        envFinal.put( EveContextFactory.WKDIR_ENV, "target" + File.separator + "eve" );        envFinal.put( Context.INITIAL_CONTEXT_FACTORY, "org.apache.eve.jndi.EveContextFactory" );        envFinal.putAll( overrides );        InitialContext initialContext = new InitialContext( envFinal );        return sysRoot = ( LdapContext ) initialContext.lookup( "" );    }