mashimaro 20 Newbie Poster

Hey, got a problem with connecting to some ldap's.

Hashtable data = new Hashtable();
data.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
data.put(Context.PROVIDER_URL, "ldap://" + host + ":" + port + "/");
data.put(Context.SECURITY_AUTHENTICATION, "simple");
data.put(Context.SECURITY_PRINCIPAL, "cn=" + username);
dane.put(Context.SECURITY_CREDENTIALS, password);
DirContext ctx = new InitialDirContext(data);

I can connect to SUN's ldap using this, but there are others with which i can't. I was told there's some "bind" function needed?