andrew_lele
11-03-2005, 04:32 AM
Hi, i have a problem with a connection to an ldap server. i need to know if into the LDAP there is a person, given hsi username and password. Actually i cannot know his password or better the algorithm with which it has been cryptated. i wite below my code. ). i think i have to use the bind() function but i don't know how to use it because it gives to me an error of illegal host... but i give to it the IP adress of my computer where is installated the LDAP server
int port = LDAPConnection.DEFAULT_PORT;
int ldapVersion = LDAPConnection.LDAP_V3;
LDAPConnection lc = new LDAPConnection();
String urlLDAP = context.getInitParameter("LDAP_HOST") ;
this methods that i use arrives from some novell libraries... i want use standard java.
then i make the connection:
lc.connect( urlLDAP,port );
if there's someone that can help me with any suggestion? thank you very much
andrew_lele
int port = LDAPConnection.DEFAULT_PORT;
int ldapVersion = LDAPConnection.LDAP_V3;
LDAPConnection lc = new LDAPConnection();
String urlLDAP = context.getInitParameter("LDAP_HOST") ;
this methods that i use arrives from some novell libraries... i want use standard java.
then i make the connection:
lc.connect( urlLDAP,port );
if there's someone that can help me with any suggestion? thank you very much
andrew_lele