How to pass userID instead of DN name while passing user credential..URGENT

Hi every body,

My application development requires changing password in Active Directory. I am able to change the password but passing user name as DN name i.e. CN=Victor Jeet, CN=User, DN=mydomain, DN=local. But I need to pass the user name as userID i.e. victor which will be entered in the jsp field text. How do I pass user credential as userId to change the password instead of DN name.

Please reply ASAP........

Thanks

[450 byte] By [VictorJeeta] at [2007-11-27 4:09:13]
# 1
Well, the DN for users is a fixed string for example,dc=users,dc=java,dc=sun,dc=comYou can store the above string in a constant variable and use it with the uid that you obtain from JSP.cn=uid,dc=users,dc=java,dc=sun,dc=com
jndi-deva at 2007-7-12 9:14:38 > top of Java-index,Core,Core APIs...