Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Detect if user on Domain

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  Connect to IIS 6.0 MC from 2000 pro client  
Author Message
match_it_dev

External


Since: Aug 02, 2004
Posts: 3



(Msg. 1) Posted: Mon Aug 02, 2004 11:37 am
Post subject: Detect if user on Domain
Archived from groups: microsoft>public>inetserver>iis (more info?)

I wonder if anyone can help... I am trying to detect if a user to our site is on the domain or not, without asking them, and without having a login box pop-up.

We tried activating "Anoymous Access" and "Integrated Security" and then using the Request.ServerVariables("LOGON_USER") to work out whether the user was logged on and then direct them to the appropriate site. Only problem is Request.ServerVariables("LOGON_USER") is always empty when you turn on Anon Access - even if Integrated is on too. If you turn off Anon Access then the users are prompted if they aren't on the domain.

Does anyone have a solution to this?

Thanks.
Jon.

P.S. Web Server & AD Controller are Windows 2000.

 >> Stay informed about: Detect if user on Domain 
Back to top
Login to vote
user1986

External


Since: Aug 02, 2004
Posts: 2



(Msg. 2) Posted: Mon Aug 02, 2004 3:35 pm
Post subject: RE: Detect if user on Domain [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Jon,

I am in the exact same situation. I would also be curious if anyone has a solution to this.



"Jon Edney" wrote:

 > I wonder if anyone can help... I am trying to detect if a user to our site is on the domain or not, without asking them, and without having a login box pop-up.
 >
 > We tried activating "Anoymous Access" and "Integrated Security" and then using the Request.ServerVariables("LOGON_USER") to work out whether the user was logged on and then direct them to the appropriate site. Only problem is Request.ServerVariables("LOGON_USER") is always empty when you turn on Anon Access - even if Integrated is on too. If you turn off Anon Access then the users are prompted if they aren't on the domain.
 >
 > Does anyone have a solution to this?
 >
 > Thanks.
 > Jon.
 >
 > P.S. Web Server & AD Controller are Windows 2000.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Detect if user on Domain 
Back to top
Login to vote
user641

External


Since: Aug 22, 2003
Posts: 1637



(Msg. 3) Posted: Mon Aug 02, 2004 7:25 pm
Post subject: Re: Detect if user on Domain [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Jon Edney" <Match_IT_Dev RemoveThis @online.nospam> wrote in message
news:14C92B22-A932-4779-9E64-8E6D29332AB7@microsoft.com...
 > I wonder if anyone can help... I am trying to detect if a user to our site
is on the domain or not, without asking them, and without having a login box
pop-up.
 >
 > We tried activating "Anoymous Access" and "Integrated Security" and then
using the Request.ServerVariables("LOGON_USER") to work out whether the user
was logged on and then direct them to the appropriate site. Only problem is
Request.ServerVariables("LOGON_USER") is always empty when you turn on Anon
Access - even if Integrated is on too. If you turn off Anon Access then the
users are prompted if they aren't on the domain.
 >
 > Does anyone have a solution to this?

If you configure IE correctly it won't prompt you if the user is on the same
domain:
<a style='text-decoration: underline;' href="http://support.microsoft.com/?id=303650" target="_blank">http://support.microsoft.com/?id=303650</a>

--
Tom Kaminski IIS MVP
<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>
<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.iisfaq.com/" target="_blank">http://www.iisfaq.com/</a>
<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://www.tryiis.com" target="_blank">http://www.tryiis.com</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Detect if user on Domain 
Back to top
Login to vote
user1986

External


Since: Aug 02, 2004
Posts: 2



(Msg. 4) Posted: Mon Aug 02, 2004 7:28 pm
Post subject: Re: Detect if user on Domain [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for the reply Tom. I had seen the link you sent and have IE configured as described in the article. The problem is(and it sounds like Jon wants the same thing) that a Windows user that has the domain included in their list of "Local Intranet" sites in IE will not get prompted...which is good. But when a user that does not have the site set up in the "Local Intranet" hits the site, they get prompted for a username and password. Instead of those people being prompted, I would like to redirect those users to a different page/site automatically..

Any ideas?



"Tom Kaminski [MVP]" wrote:

 > "Jon Edney" <Match_IT_Dev.TakeThisOut@online.nospam> wrote in message
 > news:14C92B22-A932-4779-9E64-8E6D29332AB7@microsoft.com...
  > > I wonder if anyone can help... I am trying to detect if a user to our site
 > is on the domain or not, without asking them, and without having a login box
 > pop-up.
  > >
  > > We tried activating "Anoymous Access" and "Integrated Security" and then
 > using the Request.ServerVariables("LOGON_USER") to work out whether the user
 > was logged on and then direct them to the appropriate site. Only problem is
 > Request.ServerVariables("LOGON_USER") is always empty when you turn on Anon
 > Access - even if Integrated is on too. If you turn off Anon Access then the
 > users are prompted if they aren't on the domain.
  > >
  > > Does anyone have a solution to this?
 >
 > If you configure IE correctly it won't prompt you if the user is on the same
 > domain:
<font color=purple> > <a style='text-decoration: underline;' href="http://support.microsoft.com/?id=303650</font" target="_blank">http://support.microsoft.com/?id=303650</font</a>>
 >
 > --
 > Tom Kaminski IIS MVP
<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>>
<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.iisfaq.com/</font" target="_blank">http://www.iisfaq.com/</font</a>>
 > <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://www.tryiis.com</font" target="_blank">http://www.tryiis.com</font</a>>
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Detect if user on Domain 
Back to top
Login to vote
match_it_dev

External


Since: Aug 02, 2004
Posts: 3



(Msg. 5) Posted: Tue Aug 03, 2004 4:11 am
Post subject: Re: Detect if user on Domain [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The IE solution is the one we are using for the users that are logged on to the domain, and it works fine. The problem we have, is that some users are only logging on locally. To all intents and purposes they are "Internet" users... I can't diferentiate using IP address either as we are slowly migrating all the standalone users to the domain. Any other ideas?

Thanks,
Jon.


"ar" wrote:

 > Thanks for the reply Tom. I had seen the link you sent and have IE configured as described in the article. The problem is(and it sounds like Jon wants the same thing) that a Windows user that has the domain included in their list of "Local Intranet" sites in IE will not get prompted...which is good. But when a user that does not have the site set up in the "Local Intranet" hits the site, they get prompted for a username and password. Instead of those people being prompted, I would like to redirect those users to a different page/site automatically..
 >
 > Any ideas?
 >
 >
 >
 > "Tom Kaminski [MVP]" wrote:
 >
  > > "Jon Edney" <Match_IT_Dev.TakeThisOut@online.nospam> wrote in message
  > > news:14C92B22-A932-4779-9E64-8E6D29332AB7@microsoft.com...
   > > > I wonder if anyone can help... I am trying to detect if a user to our site
  > > is on the domain or not, without asking them, and without having a login box
  > > pop-up.
   > > >
   > > > We tried activating "Anoymous Access" and "Integrated Security" and then
  > > using the Request.ServerVariables("LOGON_USER") to work out whether the user
  > > was logged on and then direct them to the appropriate site. Only problem is
  > > Request.ServerVariables("LOGON_USER") is always empty when you turn on Anon
  > > Access - even if Integrated is on too. If you turn off Anon Access then the
  > > users are prompted if they aren't on the domain.
   > > >
   > > > Does anyone have a solution to this?
  > >
  > > If you configure IE correctly it won't prompt you if the user is on the same
  > > domain:
<font color=green>  > > <a style='text-decoration: underline;' href="http://support.microsoft.com/?id=303650</font" target="_blank">http://support.microsoft.com/?id=303650</font</a>>
  > >
  > > --
  > > Tom Kaminski IIS MVP
<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>>
<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.iisfaq.com/</font" target="_blank">http://www.iisfaq.com/</font</a>>
  > > <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://www.tryiis.com</font" target="_blank">http://www.tryiis.com</font</a>>
  > >
  > >
  > ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Detect if user on Domain 
Back to top
Login to vote
match_it_dev

External


Since: Aug 02, 2004
Posts: 3



(Msg. 6) Posted: Tue Aug 03, 2004 4:13 am
Post subject: Re: Detect if user on Domain [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The IE solution is the one we are using for the users that are logged on to the domain, and it works fine. The problem we have, is that some users are only logging on locally. To all intents and purposes they are "Internet" users... I can't diferentiate using IP address either as we are slowly migrating all the standalone users to the domain. Any other ideas?

Thanks,
Jon.



"Tom Kaminski [MVP]" wrote:

 > "Jon Edney" <Match_IT_Dev DeleteThis @online.nospam> wrote in message
 > news:14C92B22-A932-4779-9E64-8E6D29332AB7@microsoft.com...
  > > I wonder if anyone can help... I am trying to detect if a user to our site
 > is on the domain or not, without asking them, and without having a login box
 > pop-up.
  > >
  > > We tried activating "Anoymous Access" and "Integrated Security" and then
 > using the Request.ServerVariables("LOGON_USER") to work out whether the user
 > was logged on and then direct them to the appropriate site. Only problem is
 > Request.ServerVariables("LOGON_USER") is always empty when you turn on Anon
 > Access - even if Integrated is on too. If you turn off Anon Access then the
 > users are prompted if they aren't on the domain.
  > >
  > > Does anyone have a solution to this?
 >
 > If you configure IE correctly it won't prompt you if the user is on the same
 > domain:
<font color=purple> > <a style='text-decoration: underline;' href="http://support.microsoft.com/?id=303650</font" target="_blank">http://support.microsoft.com/?id=303650</font</a>>
 >
 > --
 > Tom Kaminski IIS MVP
<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>>
<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.iisfaq.com/</font" target="_blank">http://www.iisfaq.com/</font</a>>
 > <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://www.tryiis.com</font" target="_blank">http://www.tryiis.com</font</a>>
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Detect if user on Domain 
Back to top
Login to vote
user641

External


Since: Aug 22, 2003
Posts: 1637



(Msg. 7) Posted: Tue Aug 03, 2004 1:26 pm
Post subject: Re: Detect if user on Domain [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

AFAIK, you'd need to write an ISAPI filter that mucks with the
authentication headers (which is beyond my abilities and the scope of this
forum).

"Jon Edney" <Match_IT_Dev.RemoveThis@online.nospam> wrote in message
news:DC326B12-6D4E-4C21-B7F7-A04C48DB4CA9@microsoft.com...
 > The IE solution is the one we are using for the users that are logged on
to the domain, and it works fine. The problem we have, is that some users
are only logging on locally. To all intents and purposes they are "Internet"
users... I can't diferentiate using IP address either as we are slowly
migrating all the standalone users to the domain. Any other ideas?
 >
 > Thanks,
 > Jon.
 >
 >
 > "ar" wrote:
 >
  > > Thanks for the reply Tom. I had seen the link you sent and have IE
configured as described in the article. The problem is(and it sounds like
Jon wants the same thing) that a Windows user that has the domain included
in their list of "Local Intranet" sites in IE will not get prompted...which
is good. But when a user that does not have the site set up in the "Local
Intranet" hits the site, they get prompted for a username and password.
Instead of those people being prompted, I would like to redirect those users
to a different page/site automatically..
  > >
  > > Any ideas?
  > >
  > >
  > >
  > > "Tom Kaminski [MVP]" wrote:
  > >
   > > > "Jon Edney" <Match_IT_Dev.RemoveThis@online.nospam> wrote in message
   > > > news:14C92B22-A932-4779-9E64-8E6D29332AB7@microsoft.com...
   > > > > I wonder if anyone can help... I am trying to detect if a user to
our site
   > > > is on the domain or not, without asking them, and without having a
login box
   > > > pop-up.
   > > > >
   > > > > We tried activating "Anoymous Access" and "Integrated Security" and
then
   > > > using the Request.ServerVariables("LOGON_USER") to work out whether
the user
   > > > was logged on and then direct them to the appropriate site. Only
problem is
   > > > Request.ServerVariables("LOGON_USER") is always empty when you turn on
Anon
   > > > Access - even if Integrated is on too. If you turn off Anon Access
then the
   > > > users are prompted if they aren't on the domain.
   > > > >
   > > > > Does anyone have a solution to this?
   > > >
   > > > If you configure IE correctly it won't prompt you if the user is on
the same
   > > > domain:
<font color=brown>   > > > <a style='text-decoration: underline;' href="http://support.microsoft.com/?id=303650</font" target="_blank">http://support.microsoft.com/?id=303650</font</a>>
   > > >
   > > > --
   > > > Tom Kaminski IIS MVP
<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>>
<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.iisfaq.com/</font" target="_blank">http://www.iisfaq.com/</font</a>>
   > > > <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://www.tryiis.com</font" target="_blank">http://www.tryiis.com</font</a>>
   > > >
   > > >
   > > ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Detect if user on Domain 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
How To change IWAM user to a AD domain user - I have two IIS Servers running our ASP/COM applications in the same AD domain. Now the anonymous user of IIS was set to a domain user such as : "IUSER_myDomain", and IWAM user is the local machine's user account(i.e. IWAM_machineName). How c...

Domain User Personal Home Pages ON IIS - What is invovled in allowing domain users to manage their own home pages on an IIS installed on Windows 2000 server? We would like our users to have full control over their personal home page folders and have addresses like: ..

AppPool Identity set to domain user and got "Service Unava.. - Hi there, I used to have a web application (aspx) hosted by a win2003 IIS6. Since I need the web application to connect to databases using a specific user id, I configured the default application pool to use "configurable" identity and it ...

detect IIS installation - Hi, trying to detect if IIS is installed before deploying a .NET web application locally. (Unfortuneatly, VS setup tool checks for Framework first and then for IIS.) Tried s.th. like this: Set IIsObject = GetObject("IIS://localhost/w3svc") ...

Unable to Detect OS - HI, I have just installed Win NT Server on at Netfinity 5500. I have upgraded to FP 6.0. I am now trying to install the option pack that comes with NT Server but it keeps coming up with unable to detect OS when going through the setup. I tells me it..
   Web Hosting and Web Master Forums (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 ]