I'm trying to retrieve the users email address via ADSI in ASP.
So far, I have the following code:
Set oUser = GetObject("WinN T://domain/" & Request.Form("U ID") & ",user")
Response.Write oUser.EmailAddr ess
But I get the following message:
"The directory property cannot be found in the cache. "
Any ideas where I am going wrong?
Thanks
So far, I have the following code:
Set oUser = GetObject("WinN T://domain/" & Request.Form("U ID") & ",user")
Response.Write oUser.EmailAddr ess
But I get the following message:
"The directory property cannot be found in the cache. "
Any ideas where I am going wrong?
Thanks
Comment