env.put(Context.SECURITY_CREDENTIALS, password);
env.put(Context.SECURITY_CREDENTIALS, getPassword());
    public LdapWorker (String s, String base, String bind, String p) {	setBaseDN(base);	setBindDN(bind);	setServer(s);	this.password = p;	Hashtable env = new Hashtable();	env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");	env.put(Context.PROVIDER_URL, "ldap://" + getServer());	env.put(Context.SECURITY_PRINCIPAL, getBindDN());	env.put(Context.SECURITY_CREDENTIALS, password);	try {	    ctx = new InitialDirContext(env);	}	catch(NamingException e) {	    setSuccess(false);	    System.err.println("Problem " + e);	}    }