I am hoping someone can point me in the direction of some sample code that reads from AD and has the ability to update that information.
What I am looking to do is use Request.ServerVariables["AUTH_USER"] to get the domain user that is accessing the page. I want to query AD for the phone number of this user and put that number into an editable text box that can be updated. A submit button shoudl then read the data in the text box and write the information back to AD using credentials either coded into the page or set at the IIS level so the user does not need to have rights.
I've been searching and finding some C# examples, but I am strictly a VB guy. It has been a few years since I did anything like this and back then I was just using classic ASP. My requirements are a bit more complex than I am outlining here but I know once I have this most basic example I can expand on what I am looking for.
Can anyone point me to some sample VB code that would do all of this. The concept of code behind pages still eludes me so I am really hoping to get an example I can study and absorb.
Many thanks.
Mark
What I am looking to do is use Request.ServerVariables["AUTH_USER"] to get the domain user that is accessing the page. I want to query AD for the phone number of this user and put that number into an editable text box that can be updated. A submit button shoudl then read the data in the text box and write the information back to AD using credentials either coded into the page or set at the IIS level so the user does not need to have rights.
I've been searching and finding some C# examples, but I am strictly a VB guy. It has been a few years since I did anything like this and back then I was just using classic ASP. My requirements are a bit more complex than I am outlining here but I know once I have this most basic example I can expand on what I am looking for.
Can anyone point me to some sample VB code that would do all of this. The concept of code behind pages still eludes me so I am really hoping to get an example I can study and absorb.
Many thanks.
Mark