Talk Root - PC Hardware, Software and Web Development forums

Go Back   Talk Root - PC Hardware, Software and Web Development forums > System Administration > Web Servers > IIS


Welcome to the Talk Root - PC Hardware, Software and Web Development forums. Are you a programmer, web developer, IT guy or a computer guru? We invite you to join our forums and participate in friendly discussion. It doesn't matter your skill level, we are here to help everyone.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
Sponsored Links
Reply
 
LinkBack Thread Tools Rate Thread
Old 01-15-2004, 08:17 AM   #1
Bjoern Wolfgardt
 
Posts: n/a
Impersonate and IIS6 driving me nuts

Hi NG,

I have written some Apps in ASP.NET that access a SQL Server on another
machine. I never had a problem doing this in IIS5(.1).
Most Apps are Intranet Application where I use the integrated windows
authentication. So my webconfig uses <identity impersonate="true"/>. My
Problem is that I now had to install one app on a Windows 2003 Server. I
tried to run my app but I allways get the error that anonymous access is not
allowed.

So here is what I did right now:
- I tried to create a new AppPool. I assigned the app to the new AppPool. I
changed the Identity to 'local system'. I allowed delegation for this
machine (the iis machine). Same Error.
- I configured the AppPool to use my account and added my account to the
local group (IIS_WPG). After that I was prompted to enter my credentials if
I access the website. But my creds are not accepted.

I have to use integrated windows authentication (and it's the only
authentication that is enabled).
If I use simple authentication (I did to test it) all works fine.
btw: Impersonation works. I checked
System.Web.HttpContext.Current.User.Identity.Name and it is the user that
accesses the website.

thx in advance
Bjoern


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 01-15-2004, 10:52 AM   #2
bruce barker
 
Posts: n/a
Re: Impersonate and IIS6 driving me nuts

your scenario will not work with ii5 or iis6.0. a search of this newsgroup
will give you lots of answers.

the short answer is windows authentication does not support delegation
(passing credentials from one server to another) and is limited to the one
hop rule, only a primary token can be passed to a second server. windows
authentication on iis (all versions) gives the thread a secondary
(impersonation) token which can not be used to access any network resouce.

your only option is basic (which gives iis a primary token), or digest which
supports delegation. digest requires AD and delegation to be enabled
(default is off).


-- bruce (sqlwork.com)




"Bjoern Wolfgardt" <givenname.surname@removeme-cigate.de> wrote in message
news:#r7qes32DHA.2432@TK2MSFTNGP09.phx.gbl...
> Hi NG,
>
> I have written some Apps in ASP.NET that access a SQL Server on another
> machine. I never had a problem doing this in IIS5(.1).
> Most Apps are Intranet Application where I use the integrated windows
> authentication. So my webconfig uses <identity impersonate="true"/>. My
> Problem is that I now had to install one app on a Windows 2003 Server. I
> tried to run my app but I allways get the error that anonymous access is

not
> allowed.
>
> So here is what I did right now:
> - I tried to create a new AppPool. I assigned the app to the new AppPool.

I
> changed the Identity to 'local system'. I allowed delegation for this
> machine (the iis machine). Same Error.
> - I configured the AppPool to use my account and added my account to the
> local group (IIS_WPG). After that I was prompted to enter my credentials

if
> I access the website. But my creds are not accepted.
>
> I have to use integrated windows authentication (and it's the only
> authentication that is enabled).
> If I use simple authentication (I did to test it) all works fine.
> btw: Impersonation works. I checked
> System.Web.HttpContext.Current.User.Identity.Name and it is the user that
> accesses the website.
>
> thx in advance
> Bjoern
>
>



 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-15-2004, 12:18 PM   #3
Shiv Kumar
 
Posts: n/a
Re: Impersonate and IIS6 driving me nuts

Do you need authentication for the whole website or just one of two specific
operations?
--
Shiv R. Kumar
http://www.matlus.com


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 05:56 PM.


Sponsors
Banner Best Deals 24x7 @ Geeks.com!
Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0 RC8
vB Ad Management by =RedTyger=
© 2006 TalkRoot.com -