Re: Retrieving users email address
From: CJM (cjmnews04_at_newsgroups.nospam)
Date: 11/23/04
- Next message: CJM: "Re: Retrieving users email address"
- Previous message: Patrice: "Re: Is there any chance to display ftp-content on an asp-site"
- In reply to: Jeff Cochran: "Re: Retrieving users email address"
- Next in thread: Jeff Cochran: "Re: Retrieving users email address"
- Reply: Jeff Cochran: "Re: Retrieving users email address"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 23 Nov 2004 12:39:53 -0000
"Jeff Cochran" <jeff.nospam@zina.com> wrote in message
news:419f294f.1804853622@msnews.microsoft.com...
> On Fri, 19 Nov 2004 16:33:30 -0000, "CJM"
> <cjmnews04@newsgroups.nospam> wrote:
>
>>I'm trying to retrieve the users email address via ADSI in ASP.
>>
>>So far, I have the following code:
>>
>>Set oUser = GetObject("WinNT://domain/" & Request.Form("UID") & ",user")
>>Response.Write oUser.EmailAddress
>>
>>But I get the following message:
>>
>>"The directory property cannot be found in the cache. "
>>
>>Any ideas where I am going wrong?
>
> First guess is you're looking for a directory property that isn't in
> the cache... :)
>
> You're going to need to get specific and tell us versions of OS,
> Active Directory or not, etc. Also, if the email address isn't in
> your directory, you're still not going to get anything.
>
> Jeff
Jeff,
My development server is XPSP2 and we are using Active Directory 2003
(Native mode).
All the email address are populated.
Thanks
Chris
- Next message: CJM: "Re: Retrieving users email address"
- Previous message: Patrice: "Re: Is there any chance to display ftp-content on an asp-site"
- In reply to: Jeff Cochran: "Re: Retrieving users email address"
- Next in thread: Jeff Cochran: "Re: Retrieving users email address"
- Reply: Jeff Cochran: "Re: Retrieving users email address"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|