Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

IIS 4 & 6 username in logfile

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  FileSystemObject corruption?  
Author Message
ojm1

External


Since: Jun 04, 2004
Posts: 5



(Msg. 1) Posted: Fri Jun 04, 2004 4:22 pm
Post subject: IIS 4 & 6 username in logfile
Archived from groups: microsoft>public>inetserver>iis (more info?)

How do I get IIS4 and IIS6 to write a username (cs-username in logfile
fields) to the logfile? All I get now is "-".

TIA,
Owen

 >> Stay informed about: IIS 4 & 6 username in logfile 
Back to top
Login to vote
user641

External


Since: Aug 22, 2003
Posts: 1637



(Msg. 2) Posted: Fri Jun 04, 2004 7:29 pm
Post subject: Re: IIS 4 & 6 username in logfile [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Owen" <ojm.RemoveThis@acm.org> wrote in message
news:eavwPHnSEHA.3448@TK2MSFTNGP09.phx.gbl...
 > How do I get IIS4 and IIS6 to write a username (cs-username in logfile
 > fields) to the logfile? All I get now is "-".

You need to remove anonymous access from the website and force users to
authenticate.

--
Tom Kaminski IIS MVP
<a style='text-decoration: underline;' href="http://www.iistoolshed.com/" target="_blank">http://www.iistoolshed.com/</a> - tools, scripts, and utilities for running IIS
<a style='text-decoration: underline;' href="http://mvp.support.microsoft.com/" target="_blank">http://mvp.support.microsoft.com/</a>
<a style='text-decoration: underline;' href="http://www.microsoft.com/windowsserver2003/community/centers/iis/" target="_blank">http://www.microsoft.com/windowsserver2003/community/centers/iis/</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: IIS 4 & 6 username in logfile 
Back to top
Login to vote
ojm1

External


Since: Jun 04, 2004
Posts: 5



(Msg. 3) Posted: Fri Jun 04, 2004 7:29 pm
Post subject: Re: IIS 4 & 6 username in logfile [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Is there no way to allow anonymous access, providing my own authentication
routines (like SiteServer 3.0's Personalization and Membership does) and
transmit the user information to IIS6? We do not want to let external users
have Windows accounts on our servers.

Owen

"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:c9qlgf$cbb13@kcweb01.netnews.att.com...
 > "Owen" <ojm DeleteThis @acm.org> wrote in message
 > news:eavwPHnSEHA.3448@TK2MSFTNGP09.phx.gbl...
  > > How do I get IIS4 and IIS6 to write a username (cs-username in logfile
  > > fields) to the logfile? All I get now is "-".
 >
 > You need to remove anonymous access from the website and force users to
 > authenticate.
 >
 > --
 > Tom Kaminski IIS MVP
 > <a style='text-decoration: underline;' href="http://www.iistoolshed.com/" target="_blank">http://www.iistoolshed.com/</a> - tools, scripts, and utilities for running
IIS
<font color=purple> > <a style='text-decoration: underline;' href="http://mvp.support.microsoft.com/</font" target="_blank">http://mvp.support.microsoft.com/</font</a>>
<font color=purple> > <a style='text-decoration: underline;' href="http://www.microsoft.com/windowsserver2003/community/centers/iis/</font" target="_blank">http://www.microsoft.com/windowsserver2003/community/centers/iis/</font</a>>
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS 4 & 6 username in logfile 
Back to top
Login to vote
someone9

External


Since: Aug 25, 2003
Posts: 2419



(Msg. 4) Posted: Sat Jun 05, 2004 7:48 am
Post subject: Re: IIS 4 & 6 username in logfile [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

IIS is extensible.

You can write an ISAPI Filter to integrate your own authentication routines
and also rewrite the cs-username field with whatever you want.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Owen" <ojm.TakeThisOut@acm.org> wrote in message
news:ucFAhGoSEHA.3812@TK2MSFTNGP11.phx.gbl...
Is there no way to allow anonymous access, providing my own authentication
routines (like SiteServer 3.0's Personalization and Membership does) and
transmit the user information to IIS6? We do not want to let external users
have Windows accounts on our servers.

Owen

"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:c9qlgf$cbb13@kcweb01.netnews.att.com...
 > "Owen" <ojm.TakeThisOut@acm.org> wrote in message
 > news:eavwPHnSEHA.3448@TK2MSFTNGP09.phx.gbl...
  > > How do I get IIS4 and IIS6 to write a username (cs-username in logfile
  > > fields) to the logfile? All I get now is "-".
 >
 > You need to remove anonymous access from the website and force users to
 > authenticate.
 >
 > --
 > Tom Kaminski IIS MVP
 > <a style='text-decoration: underline;' href="http://www.iistoolshed.com/" target="_blank">http://www.iistoolshed.com/</a> - tools, scripts, and utilities for running
IIS
<font color=purple> > <a style='text-decoration: underline;' href="http://mvp.support.microsoft.com/</font" target="_blank">http://mvp.support.microsoft.com/</font</a>>
<font color=purple> > <a style='text-decoration: underline;' href="http://www.microsoft.com/windowsserver2003/community/centers/iis/</font" target="_blank">http://www.microsoft.com/windowsserver2003/community/centers/iis/</font</a>>
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS 4 & 6 username in logfile 
Back to top
Login to vote
kgafvert

External


Since: Aug 23, 2003
Posts: 3146



(Msg. 5) Posted: Sat Jun 05, 2004 11:52 am
Post subject: Re: IIS 4 & 6 username in logfile [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You must in one or another way have the users logon to the website. The -
indicate anonymous user.

--
Regards,
Kristofer Gafvert - IIS MVP
<a style='text-decoration: underline;' href="http://www.ilopia.com" target="_blank">http://www.ilopia.com</a> - When you need help!


"Owen" <ojm.TakeThisOut@acm.org> wrote in message
news:eavwPHnSEHA.3448@TK2MSFTNGP09.phx.gbl...
 > How do I get IIS4 and IIS6 to write a username (cs-username in logfile
 > fields) to the logfile? All I get now is "-".
 >
 > TIA,
 > Owen
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS 4 & 6 username in logfile 
Back to top
Login to vote
ojm1

External


Since: Jun 04, 2004
Posts: 5



(Msg. 6) Posted: Mon Jun 07, 2004 12:29 pm
Post subject: Re: IIS 4 & 6 username in logfile [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Right. I'm using the FormsLogin stuff for our dotNet stuff (and that doesn't
write to cs-username either), but we still have a lot of our site that will
not be converted yet.

I've found some information on MSDN about writing a custom logging module.
Seems like a bit of overkill for something that should be as simple as
SetLoginName( strUserName )....

Owen


"Kristofer Gafvert" <kgafvert.RemoveThis@NEWSilopia.com> wrote in message
news:utBygmsSEHA.796@TK2MSFTNGP10.phx.gbl...
 > You must in one or another way have the users logon to the website. The -
 > indicate anonymous user.
 >
 > --
 > Regards,
 > Kristofer Gafvert - IIS MVP
 > <a style='text-decoration: underline;' href="http://www.ilopia.com" target="_blank">http://www.ilopia.com</a> - When you need help!
 >
 >
 > "Owen" <ojm.RemoveThis@acm.org> wrote in message
 > news:eavwPHnSEHA.3448@TK2MSFTNGP09.phx.gbl...
  > > How do I get IIS4 and IIS6 to write a username (cs-username in logfile
  > > fields) to the logfile? All I get now is "-".
  > >
  > > TIA,
  > > Owen
  > >
  > >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS 4 & 6 username in logfile 
Back to top
Login to vote
ojm1

External


Since: Jun 04, 2004
Posts: 5



(Msg. 7) Posted: Mon Jun 07, 2004 12:40 pm
Post subject: Re: IIS 4 & 6 username in logfile [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I've found some information on MSDN regarding writing a custom logging
module. Seems a bit of overkill, but if that's what I have to do.... Seems
like there should be an IIS subroutine called SetLoginUser( strUserName ) or
something like that....

Thanks,
Owen

"David Wang [Msft]" <someone.RemoveThis@online.microsoft.com> wrote in message
news:uPmmWPvSEHA.2908@TK2MSFTNGP10.phx.gbl...
 > IIS is extensible.
 >
 > You can write an ISAPI Filter to integrate your own authentication
routines
 > and also rewrite the cs-username field with whatever you want.
 >
 > --
 > //David
 > IIS
 > This posting is provided "AS IS" with no warranties, and confers no
rights.
 > //
 > "Owen" <ojm.RemoveThis@acm.org> wrote in message
 > news:ucFAhGoSEHA.3812@TK2MSFTNGP11.phx.gbl...
 > Is there no way to allow anonymous access, providing my own authentication
 > routines (like SiteServer 3.0's Personalization and Membership does) and
 > transmit the user information to IIS6? We do not want to let external
users
 > have Windows accounts on our servers.
 >
 > Owen
 >
 > "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
 > news:c9qlgf$cbb13@kcweb01.netnews.att.com...
  > > "Owen" <ojm.RemoveThis@acm.org> wrote in message
  > > news:eavwPHnSEHA.3448@TK2MSFTNGP09.phx.gbl...
   > > > How do I get IIS4 and IIS6 to write a username (cs-username in logfile
   > > > fields) to the logfile? All I get now is "-".
  > >
  > > You need to remove anonymous access from the website and force users to
  > > authenticate.
  > >
  > > --
  > > Tom Kaminski IIS MVP
  > > <a style='text-decoration: underline;' href="http://www.iistoolshed.com/" target="_blank">http://www.iistoolshed.com/</a> - tools, scripts, and utilities for running
 > IIS
<font color=green>  > > <a style='text-decoration: underline;' href="http://mvp.support.microsoft.com/</font" target="_blank">http://mvp.support.microsoft.com/</font</a>>
<font color=green>  > > <a style='text-decoration: underline;' href="http://www.microsoft.com/windowsserver2003/community/centers/iis/</font" target="_blank">http://www.microsoft.com/windowsserver2003/community/centers/iis/</font</a>>
  > >
  > >
  > >
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS 4 & 6 username in logfile 
Back to top
Login to vote
someone9

External


Since: Aug 25, 2003
Posts: 2419



(Msg. 8) Posted: Tue Jun 08, 2004 1:38 am
Post subject: Re: IIS 4 & 6 username in logfile [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

As I had said earlier - ISAPI Filter and ISAPI Extension are good ways to
expand/alter IIS behavior. "SetLoginUser" is an application level construct
while IIS is a web server that is application agnostic, so you're not going
to find it implemented in that exact fashion in of IIS. In particular, what
is a "login user" -- is it the name of the user token used to execute the
web page, or is it some logical user.

Since you are doing custom authentication/authorization behavior (also an
application level construct outside of the authentication services provided
by IIS), you must configure IIS to only do anonymous authentication and make
your ISAPI Filter implement the custom authentication/authorization
behavior.
The Filter can populate the AUTH_USER/REMOTE_USER server variable as
well as cs-username in the log file, and it can also control the value of
LOGON_USER -- essentially what "SetLoginUser" does on a logical scale at the
application level, but you must do it at an HTTP level since that's all IIS
understands.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Owen" <ojm DeleteThis @acm.org> wrote in message
news:O0VWf4KTEHA.3332@tk2msftngp13.phx.gbl...
I've found some information on MSDN regarding writing a custom logging
module. Seems a bit of overkill, but if that's what I have to do.... Seems
like there should be an IIS subroutine called SetLoginUser( strUserName ) or
something like that....

Thanks,
Owen

"David Wang [Msft]" <someone DeleteThis @online.microsoft.com> wrote in message
news:uPmmWPvSEHA.2908@TK2MSFTNGP10.phx.gbl...
 > IIS is extensible.
 >
 > You can write an ISAPI Filter to integrate your own authentication
routines
 > and also rewrite the cs-username field with whatever you want.
 >
 > --
 > //David
 > IIS
 > This posting is provided "AS IS" with no warranties, and confers no
rights.
 > //
 > "Owen" <ojm DeleteThis @acm.org> wrote in message
 > news:ucFAhGoSEHA.3812@TK2MSFTNGP11.phx.gbl...
 > Is there no way to allow anonymous access, providing my own authentication
 > routines (like SiteServer 3.0's Personalization and Membership does) and
 > transmit the user information to IIS6? We do not want to let external
users
 > have Windows accounts on our servers.
 >
 > Owen
 >
 > "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
 > news:c9qlgf$cbb13@kcweb01.netnews.att.com...
  > > "Owen" <ojm DeleteThis @acm.org> wrote in message
  > > news:eavwPHnSEHA.3448@TK2MSFTNGP09.phx.gbl...
   > > > How do I get IIS4 and IIS6 to write a username (cs-username in logfile
   > > > fields) to the logfile? All I get now is "-".
  > >
  > > You need to remove anonymous access from the website and force users to
  > > authenticate.
  > >
  > > --
  > > Tom Kaminski IIS MVP
  > > <a style='text-decoration: underline;' href="http://www.iistoolshed.com/" target="_blank">http://www.iistoolshed.com/</a> - tools, scripts, and utilities for running
 > IIS
<font color=green>  > > <a style='text-decoration: underline;' href="http://mvp.support.microsoft.com/</font" target="_blank">http://mvp.support.microsoft.com/</font</a>>
<font color=green>  > > <a style='text-decoration: underline;' href="http://www.microsoft.com/windowsserver2003/community/centers/iis/</font" target="_blank">http://www.microsoft.com/windowsserver2003/community/centers/iis/</font</a>>
  > >
  > >
  > >
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS 4 & 6 username in logfile 
Back to top
Login to vote
ojm1

External


Since: Jun 04, 2004
Posts: 5



(Msg. 9) Posted: Tue Jun 08, 2004 12:03 pm
Post subject: Re: IIS 4 & 6 username in logfile [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for the clarification.

That brings me to this question: can I set the AUTH_USER/REMOTE_USER server
variables from an HTTPModule in ASP.NET? If so, how? That doesn't help me
with my ASP code problem, but it would be excellent for the code that is
migrating to dot-net.

Thanks,
Owen

"David Wang [Msft]" <someone RemoveThis @online.microsoft.com> wrote in message
news:%23mMCC0RTEHA.556@tk2msftngp13.phx.gbl...
 > As I had said earlier - ISAPI Filter and ISAPI Extension are good ways to
 > expand/alter IIS behavior. "SetLoginUser" is an application level
construct
 > while IIS is a web server that is application agnostic, so you're not
going
 > to find it implemented in that exact fashion in of IIS. In particular,
what
 > is a "login user" -- is it the name of the user token used to execute the
 > web page, or is it some logical user.
 >
 > Since you are doing custom authentication/authorization behavior (also an
 > application level construct outside of the authentication services
provided
 > by IIS), you must configure IIS to only do anonymous authentication and
make
 > your ISAPI Filter implement the custom authentication/authorization
 > behavior.
 > The Filter can populate the AUTH_USER/REMOTE_USER server variable as
 > well as cs-username in the log file, and it can also control the value of
 > LOGON_USER -- essentially what "SetLoginUser" does on a logical scale at
the
 > application level, but you must do it at an HTTP level since that's all
IIS
 > understands.
 >
 > --
 > //David
 > IIS
 > This posting is provided "AS IS" with no warranties, and confers no
rights.
 > //
 > "Owen" <ojm RemoveThis @acm.org> wrote in message
 > news:O0VWf4KTEHA.3332@tk2msftngp13.phx.gbl...
 > I've found some information on MSDN regarding writing a custom logging
 > module. Seems a bit of overkill, but if that's what I have to do.... Seems
 > like there should be an IIS subroutine called SetLoginUser( strUserName )
or
 > something like that....
 >
 > Thanks,
 > Owen
 >
 > "David Wang [Msft]" <someone RemoveThis @online.microsoft.com> wrote in message
 > news:uPmmWPvSEHA.2908@TK2MSFTNGP10.phx.gbl...
  > > IIS is extensible.
  > >
  > > You can write an ISAPI Filter to integrate your own authentication
 > routines
  > > and also rewrite the cs-username field with whatever you want.
  > >
  > > --
  > > //David
  > > IIS
  > > This posting is provided "AS IS" with no warranties, and confers no
 > rights.
  > > //
  > > "Owen" <ojm RemoveThis @acm.org> wrote in message
  > > news:ucFAhGoSEHA.3812@TK2MSFTNGP11.phx.gbl...
  > > Is there no way to allow anonymous access, providing my own
authentication
  > > routines (like SiteServer 3.0's Personalization and Membership does) and
  > > transmit the user information to IIS6? We do not want to let external
 > users
  > > have Windows accounts on our servers.
  > >
  > > Owen
  > >
  > > "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
  > > news:c9qlgf$cbb13@kcweb01.netnews.att.com...
   > > > "Owen" <ojm RemoveThis @acm.org> wrote in message
   > > > news:eavwPHnSEHA.3448@TK2MSFTNGP09.phx.gbl...
   > > > > How do I get IIS4 and IIS6 to write a username (cs-username in
logfile
   > > > > fields) to the logfile? All I get now is "-".
   > > >
   > > > You need to remove anonymous access from the website and force users
to
   > > > authenticate.
   > > >
   > > > --
   > > > Tom Kaminski IIS MVP
   > > > <a style='text-decoration: underline;' href="http://www.iistoolshed.com/" target="_blank">http://www.iistoolshed.com/</a> - tools, scripts, and utilities for
running
  > > IIS
<font color=brown>   > > > <a style='text-decoration: underline;' href="http://mvp.support.microsoft.com/</font" target="_blank">http://mvp.support.microsoft.com/</font</a>>
<font color=brown>   > > > <a style='text-decoration: underline;' href="http://www.microsoft.com/windowsserver2003/community/centers/iis/</font" target="_blank">http://www.microsoft.com/windowsserver2003/community/centers/iis/</font</a>>
   > > >
   > > >
   > > >
  > >
  > >
  > >
 >
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS 4 & 6 username in logfile 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
IIS Logfile - Does IIS keep a log file of accesses and errors? If so, how do I access it. Many thanks.

404 0 3 in logfile - Greetings. I am getting a "404 0 3" in the IIS 6.0 logfile. I haven't been able to find a reference I could use to figure out what 0 3 is. Any suggestions on what the 0 3 might mean or where to find an explanation would be appreciated. Th...

Logfile question - Hello, Under this message I have copy-paste some logfile lines. Can somebody tell me what this means? Am I hackt? And what can I do about this? Thanks! Arjen #Software: Microsoft Internet Information Services 6.0 #Version: 1.0 #Date: 2004-01-06..

logfile cleanup - I'll bet this is a FAQ - my apologies. I need a script to cleanup logfiles on my IIS 4 & IIS 5 servers. Can one of you point me towards a script that'll help me manage it? \\Greg Martin gmartin@gmartin.org

IISState please read logfile - Hi, Could anyone please look at the IIS state Log contents and let me know what the possible problem with my IIS server. With no pattern our CPU utilization runs every day above 100%, our web application work-slow but it works. Thx Maxx ..
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]