new InitialContext( env );
ic.search( "", "(objectClass=*)", new SearchControls() );
    public void testDisableAnonymousBinds() throws Exception    {        // Use the SUN JNDI provider to hit server port and bind as anonymous        final Hashtable env = new Hashtable();        env.put( Context.PROVIDER_URL, "ldap://localhost:" + port + "/ou=system" );        env.put( Context.SECURITY_AUTHENTICATION, "none" );        env.put( Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory" );        try        {            new InitialContext( env );            fail( "If anonymous binds are disabled we should never get here!" );        }        catch ( NoPermissionException e )        {        }    }