Hi All,
I've written some ASP pages that grab the current users name and then enumerates some of the users properties from AD.
I'm using Request.ServerVariables("REMOTE_USER") to get the user name. I'm then doing a query to find that users distinguishedName, so I have to do a series of GetObject commands like this one:
When logged on as administrator this works great, but when logged on as a user it fails. I need to specify the administrator credentials to use in my queries but I'm not sure how to do that. Can anybody point me in the right direction?
Thanks in advance.
I hope you find this post helpful. Please let me know if it was.
Regards,
Mark
I've written some ASP pages that grab the current users name and then enumerates some of the users properties from AD.
I'm using Request.ServerVariables("REMOTE_USER") to get the user name. I'm then doing a query to find that users distinguishedName, so I have to do a series of GetObject commands like this one:
Code:
Set cont = GetObject("LDAP://OU=SBSUsers,OU=Users,OU=MyBusiness,DC=mycompany,DC=local")
Thanks in advance.
I hope you find this post helpful. Please let me know if it was.
Regards,
Mark