Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Populate ASP form input with usersnames from AD using Ldap

Status
Not open for further replies.

flavor2008

IS-IT--Management
May 12, 2008
10
Hi,

I have an ASP form that a user need to enter a users name. I want the username field to be populated from AD with the username when the user enters the id no of the user which also exists in AD.

Pls can any one help with codes. i use Win 2003 Active directory with Ldap installed.
 
you can call a vbscript that enumerates the sAMAccountName attribute. This will be the legacy/direct logon name (user1 vs. user1@domain.com). If you want to use UPN logon names, then check the userPrincipalName attribute.
Obviously, if the user themselves is running this, this is not what youd want to do...for that, the easiest way is again a vbscript that calls wscript.shell to run the command "set username"...

either way you go, its then just a matter of tying back that result to your text/input location in the page....

-Brandon Wilson
MCSE00/03, MCSA:Messaging00, MCSA03, A+

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top