Integrated Windows authentiation does not working
Integrated Windows authentiation does not working
am 04.02.2006 20:02:03 von wizard
content of web.config file(briefly) -------
......
------------------------------------------------------------ --
Web Application used Integrated Windows authentiation.
In debug (VisualStudio 2003) I see next:
------------------------------------------
AuthenticationType ""
IsAuthenticated false
Name ""
HttpContext.Current.User.Identity.IsAuthenticated false
AuthenticationType "" string
IsAnonymous true bool
IsAuthenticated false bool
IsGuest false bool
IsSystem false bool
m_acctType Anonymous System.Security.Principal.WindowsAccountType
m_isAuthenticated false bool
--------------------------------------------------
Seems what Integrated Windows authentiation does not working.
QUESTION:
How can I solve this problem?
Thanks in advice.
Re: Integrated Windows authentiation does not working
am 05.02.2006 09:22:08 von someone
If you want authentication to work, then you must first turn off anonymous
authentication for your application.
Browser always chooses anonymous over any other authentication enabled on
IIS -- so if you allow anonymous in IIS, browser will never bother
negotiating authentication.
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"WiZARD" wrote in message
news:8784A2C2-A163-4046-94DF-6F35E3AA9107@microsoft.com...
> content of web.config file(briefly) -------
>
>
>
>
>
> .....
>
>
>
>
> ------------------------------------------------------------ --
>
> Web Application used Integrated Windows authentiation.
>
> In debug (VisualStudio 2003) I see next:
> ------------------------------------------
> AuthenticationType ""
> IsAuthenticated false
> Name ""
> HttpContext.Current.User.Identity.IsAuthenticated false
>
> AuthenticationType "" string
> IsAnonymous true bool
> IsAuthenticated false bool
> IsGuest false bool
> IsSystem false bool
> m_acctType Anonymous System.Security.Principal.WindowsAccountType
> m_isAuthenticated false bool
> --------------------------------------------------
> Seems what Integrated Windows authentiation does not working.
> QUESTION:
> How can I solve this problem?
> Thanks in advice.
Re: Integrated Windows authentiation does not working
am 05.02.2006 12:51:27 von wizard
Sorry but this solution does not helps :(
any other ideas?
"David Wang [Msft]" wrote:
> If you want authentication to work, then you must first turn off anonymous
> authentication for your application.
>
> Browser always chooses anonymous over any other authentication enabled on
> IIS -- so if you allow anonymous in IIS, browser will never bother
> negotiating authentication.
>
> --
> //David
> IIS
> http://blogs.msdn.com/David.Wang
> This posting is provided "AS IS" with no warranties, and confers no rights.
> //
>
Re: Integrated Windows authentiation does not working
am 06.02.2006 01:45:34 von someone
Without knowing what "does not helps" means, it is impossible to continue
troubleshooting.
You stated that you want Integrated authentication to be effective for .Net
applications. Debugging shows you that requests are using anonymous user.
You seem to expect some other result (what other result?)
I said to turn off anonymous authentication so that browser must
authenticate using configured protocol in IIS (presumably Integrated
Authentication). Now what happened?
Also realize that by default, ASP.Net runs as process identity and not
Impersonated Identity obtained through authentication. So you need to tell
ASP.Net to remain impersonated to have the user identity obtained through
IIS authentication to take effect. This may/not be what you are asking for.
http://msdn.microsoft.com/library/default.asp?url=/library/e n-us/dnbda/html/authaspdotnet.asp
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"WiZARD" wrote in message
news:F54DD03A-1B08-43B4-973B-C8C192498399@microsoft.com...
> Sorry but this solution does not helps :(
> any other ideas?
>
>
> "David Wang [Msft]" wrote:
>
>> If you want authentication to work, then you must first turn off
>> anonymous
>> authentication for your application.
>>
>> Browser always chooses anonymous over any other authentication enabled on
>> IIS -- so if you allow anonymous in IIS, browser will never bother
>> negotiating authentication.
>>
>> --
>> //David
>> IIS
>> http://blogs.msdn.com/David.Wang
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>> //
>>
Re: Integrated Windows authentiation does not working
am 06.02.2006 02:44:02 von wizard
I mean what I still got same problem IIS noes not recognized authentication.
But I found a solution:
1. Remove a virtual directory from IIS
2. Remove a link from IIS.
3. Setup a new virtual directory.
Just reinstall a project in IIS.
Seems what was somthing inside of IIS. But what? It's a secret sealed with
seven seals. Developers who work under project propose reinstall OS. I
believe, what need just a think.
I'm not a developer, I'm just a QA Engineer. :)
anyway, Thanks!
Sorry for my poor English.
"David Wang [Msft]" wrote:
> Without knowing what "does not helps" means, it is impossible to continue
> troubleshooting.
>
> You stated that you want Integrated authentication to be effective for .Net
> applications. Debugging shows you that requests are using anonymous user.
> You seem to expect some other result (what other result?)
>
> I said to turn off anonymous authentication so that browser must
> authenticate using configured protocol in IIS (presumably Integrated
> Authentication). Now what happened?
>
> Also realize that by default, ASP.Net runs as process identity and not
> Impersonated Identity obtained through authentication. So you need to tell
> ASP.Net to remain impersonated to have the user identity obtained through
> IIS authentication to take effect. This may/not be what you are asking for.
>
> http://msdn.microsoft.com/library/default.asp?url=/library/e n-us/dnbda/html/authaspdotnet.asp
>
> --
> //David
> IIS
> http://blogs.msdn.com/David.Wang
> This posting is provided "AS IS" with no warranties, and confers no rights.
> //
>
Re: Integrated Windows authentiation does not working
am 06.02.2006 03:01:11 von someone
Your solution suggests that you configured something to cause that behavior
but you don't know what. IIS is simply behaving as configured. Seems hard to
fault it as "something inside of IIS"...
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"WiZARD" wrote in message
news:C0486A9B-7880-40AE-A81C-EE5733CFB7C2@microsoft.com...
>I mean what I still got same problem IIS noes not recognized
>authentication.
>
> But I found a solution:
> 1. Remove a virtual directory from IIS
> 2. Remove a link from IIS.
> 3. Setup a new virtual directory.
>
> Just reinstall a project in IIS.
>
> Seems what was somthing inside of IIS. But what? It's a secret sealed with
> seven seals. Developers who work under project propose reinstall OS. I
> believe, what need just a think.
>
> I'm not a developer, I'm just a QA Engineer. :)
> anyway, Thanks!
>
> Sorry for my poor English.
>
>
> "David Wang [Msft]" wrote:
>
>> Without knowing what "does not helps" means, it is impossible to continue
>> troubleshooting.
>>
>> You stated that you want Integrated authentication to be effective for
>> .Net
>> applications. Debugging shows you that requests are using anonymous user.
>> You seem to expect some other result (what other result?)
>>
>> I said to turn off anonymous authentication so that browser must
>> authenticate using configured protocol in IIS (presumably Integrated
>> Authentication). Now what happened?
>>
>> Also realize that by default, ASP.Net runs as process identity and not
>> Impersonated Identity obtained through authentication. So you need to
>> tell
>> ASP.Net to remain impersonated to have the user identity obtained through
>> IIS authentication to take effect. This may/not be what you are asking
>> for.
>>
>> http://msdn.microsoft.com/library/default.asp?url=/library/e n-us/dnbda/html/authaspdotnet.asp
>>
>> --
>> //David
>> IIS
>> http://blogs.msdn.com/David.Wang
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>> //
>>
Re: Integrated Windows authentiation does not working
am 06.02.2006 03:31:26 von wizard
I reinstall project in IIS with same settings, what was previously.
"David Wang [Msft]" wrote:
> Your solution suggests that you configured something to cause that behavior
> but you don't know what. IIS is simply behaving as configured. Seems hard to
> fault it as "something inside of IIS"...
>
> --
> //David
> IIS
> http://blogs.msdn.com/David.Wang
> This posting is provided "AS IS" with no warranties, and confers no rights.
> //
Re: Integrated Windows authentiation does not working
am 06.02.2006 08:35:39 von someone
So, wouldn't that mean it's the reinstallation of the project which is the
secret with seven seals. Since IIS has no idea what a "project" means, the
project installation which configured IIS is the real mystery.
Anyways, you have it working now.
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"WiZARD" wrote in message
news:D6414B0A-624E-463A-9A01-B9D00AC961D7@microsoft.com...
>I reinstall project in IIS with same settings, what was previously.
>
>
> "David Wang [Msft]" wrote:
>
>> Your solution suggests that you configured something to cause that
>> behavior
>> but you don't know what. IIS is simply behaving as configured. Seems hard
>> to
>> fault it as "something inside of IIS"...
>>
>> --
>> //David
>> IIS
>> http://blogs.msdn.com/David.Wang
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>> //
>