| sondcw 2004-06-21, 5:50 pm |
| Thanks for the reply, craigdawson. I appreciate your time.
I have now connected to LDAP. However, the only way in which I can obtain the user's attributes is by calling:
String user = "CN=Smith Bob A,OU=Information Systems,OU=Maryville";
javax.naming.directory.Attributes atts = ctx.getAttributes (user);
I need to determine how I can send in the user name instead of the distinguished name as the value of the String user defined above. When the user logs in, I do not have the distinguished name; all I have is the user name (i.e. samaccountname in Active Di
rectory). In the DirectContext API, I do not see a method that will allow me to send in a user name instead of the distinguished name.
Any assistance is greatly appreciated.
|