Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: UserID of VB DLL


Message #1 by "Gregory Creme" <gjcreme@n...> on Tue, 18 Dec 2001 14:20:43
I think that you can look in the ASP ServerVariables collection, try the
"LOGON_USER" entry...

Martin

-----Original Message-----
From: Gregory Creme [mailto:gjcreme@n...]
Sent: 18 December 2001 14:34
To: professional vb
Subject: [pro_vb] RE: UserID of VB DLL


I have tried that and the site is set to use windows authentication
(challenge/response) and not annonymous access.  If I understand correctly,
that means that the DLL should run under the UserID of the pserson who is
logged on at the client, correct?  The problem that I am running into is
that the code works when I try to open the file manually and it even works
when I am running the program in debug mode (that makes it run under the
userID of the person on the server, right?) both of which are the same
because I am viewing the page from my local web browser running on my local
web server.

I just wanted to check to ensure that it is actually running under my
userid before I tried anything else because if it is not running as me,
then nothing else I can do will succeed since my initial assumption is not
correct.  Is there any way to do this?

Thanks,
Greg

> Have a look at the directory security tab in the properties page for your
> web site under IIS. This controls authentication and hence which user the
> ASP page runs as...
>
> Martin
>
> -----Original Message-----
> From: Gregory Creme [mailto:gjcreme@n...]
> Sent: 18 December 2001 14:21
> To: professional vb
> Subject: [pro_vb] UserID of VB DLL
>
>
> Is there any way to find out what userid my dll is running under?
>
> The problem that I am having is that I am creating objects in an ASP page
> (server side code) and I am having permission issues when opening files.
I
> checked the permissions on the files and directories and they appear to be
> correct.  My next thought is that maybe my dll is not running under the
> userID that I expect it to be running under.  Is there any way to check
> this either in a VB function or using an API?
>
> Thanks,
> Greg
>
>



  Return to Index