Delegation / IIS6 / share located on another computer

Delegation / IIS6 / share located on another computer

am 06.06.2007 16:28:42 von J Talbot

Hi

I have read a lot of articles on how to configure delegation correctly to
enable me to use IWA to gain access to an IIS site which is based on a
shared folder located on another computer in the domain but it doesn't let
me in and was wondering if someone knew why. This is a pure 2003 domain.

I have setup the following :

SERVER A (the domain controller) - has the shared folder
SERVER B has the virtual folder setup in IIS that is pointing to the share
located on another computer (i..e. \\SERVERA\share\ - For the directory
security I have anonymous access off and IWA turned on. I also have "Read"
and "Directory browsing" turned on. The folder itself has Everyone full
permissions.

In Active Directory I have set Delegation for SERVER B to "Trust this
computer to delegation for any service".

However, when I go to site on SERVER B (logged in as domain admin) I am
asked for manual login - attempting to login as Domain Admin I just get
asked repeatedly until I get a 401.3 - Access denied error.

Are there any other steps I need to take for this to work ?

Thanks

JT

Re: Delegation / IIS6 / share located on another computer

am 07.06.2007 06:21:41 von Ken Schaefer

IIS and Kerberos Part 1 - What is Kerberos and how does it work?
http://www.adopenstatic.com/cs/blogs/ken/archive/2006/10/19/ 512.aspx

IIS and Kerberos Part 2 - What are Service Principal Names?
http://www.adopenstatic.com/cs/blogs/ken/archive/2006/11/19/ 606.aspx

IIS and Kerberos. Part 3 - A simple scenario
http://www.adopenstatic.com/cs/blogs/ken/archive/2007/01/16/ 1054.aspx

IIS and Kerberos Part 4 - A simple delegation scenario
http://www.adopenstatic.com/cs/blogs/ken/archive/2007/01/27/ 1282.aspx

You need to verify that IE is configured correctly
You need to ensure that an SPN for CIFS is correctly set
You need to ensure that the client is using Kerberos to authenticate to IIS
(because you choose the "trust this computer to delegate to any service" -
this procludes Protocol Transition)

Cheers
Ken


"J Talbot" wrote in message
news:4666c503$0$10210$9a6e19ea@unlimited.newshosting.com...
> Hi
>
> I have read a lot of articles on how to configure delegation correctly to
> enable me to use IWA to gain access to an IIS site which is based on a
> shared folder located on another computer in the domain but it doesn't let
> me in and was wondering if someone knew why. This is a pure 2003 domain.
>
> I have setup the following :
>
> SERVER A (the domain controller) - has the shared folder
> SERVER B has the virtual folder setup in IIS that is pointing to the share
> located on another computer (i..e. \\SERVERA\share\ - For the directory
> security I have anonymous access off and IWA turned on. I also have "Read"
> and "Directory browsing" turned on. The folder itself has Everyone full
> permissions.
>
> In Active Directory I have set Delegation for SERVER B to "Trust this
> computer to delegation for any service".
>
> However, when I go to site on SERVER B (logged in as domain admin) I am
> asked for manual login - attempting to login as Domain Admin I just get
> asked repeatedly until I get a 401.3 - Access denied error.
>
> Are there any other steps I need to take for this to work ?
>
> Thanks
>
> JT
>
>
>

Re: Delegation / IIS6 / share located on another computer

am 07.06.2007 11:25:37 von J Talbot

Thanks Ken for your interesting articles which certainly make the process
much clearer. However, after reading through :

1) The IE client has "Enable IWA" turned on. SERVER B is in the Local
Intranet zone and I have "Automatic logon only in Intranet Zone" enabled.
2) from reading your articles I was under the impression that SPN for IIS
is correctly set if the application group is running as Network Service -
which it already is.

I have also turned Kerberos logging on for both servers but no errors are
showing in Event Viewer | System

Thanks

JT


"Ken Schaefer" wrote in message
news:eJi0btLqHHA.4132@TK2MSFTNGP02.phx.gbl...
> IIS and Kerberos Part 1 - What is Kerberos and how does it work?
> http://www.adopenstatic.com/cs/blogs/ken/archive/2006/10/19/ 512.aspx
>
> IIS and Kerberos Part 2 - What are Service Principal Names?
> http://www.adopenstatic.com/cs/blogs/ken/archive/2006/11/19/ 606.aspx
>
> IIS and Kerberos. Part 3 - A simple scenario
> http://www.adopenstatic.com/cs/blogs/ken/archive/2007/01/16/ 1054.aspx
>
> IIS and Kerberos Part 4 - A simple delegation scenario
> http://www.adopenstatic.com/cs/blogs/ken/archive/2007/01/27/ 1282.aspx
>
> You need to verify that IE is configured correctly
> You need to ensure that an SPN for CIFS is correctly set
> You need to ensure that the client is using Kerberos to authenticate to
> IIS (because you choose the "trust this computer to delegate to any
> service" - this procludes Protocol Transition)
>
> Cheers
> Ken
>
>
> "J Talbot" wrote in message
> news:4666c503$0$10210$9a6e19ea@unlimited.newshosting.com...
>> Hi
>>
>> I have read a lot of articles on how to configure delegation correctly to
>> enable me to use IWA to gain access to an IIS site which is based on a
>> shared folder located on another computer in the domain but it doesn't
>> let me in and was wondering if someone knew why. This is a pure 2003
>> domain.
>>
>> I have setup the following :
>>
>> SERVER A (the domain controller) - has the shared folder
>> SERVER B has the virtual folder setup in IIS that is pointing to the
>> share located on another computer (i..e. \\SERVERA\share\ - For the
>> directory security I have anonymous access off and IWA turned on. I also
>> have "Read" and "Directory browsing" turned on. The folder itself has
>> Everyone full permissions.
>>
>> In Active Directory I have set Delegation for SERVER B to "Trust this
>> computer to delegation for any service".
>>
>> However, when I go to site on SERVER B (logged in as domain admin) I am
>> asked for manual login - attempting to login as Domain Admin I just get
>> asked repeatedly until I get a 401.3 - Access denied error.
>>
>> Are there any other steps I need to take for this to work ?
>>
>> Thanks
>>
>> JT
>>
>>
>>
>
>

Re: Delegation / IIS6 / share located on another computer

am 07.06.2007 13:17:46 von Ken Schaefer

Hi,

Can you look in the Security Event log of the webserver, and verify that the
client is actually authenticating using Kerberos (and not NTLM)?

http://www.adopenstatic.com/cs/blogs/ken/archive/2006/08/02/ 194.aspx has
screenshots of what you are looking for.

Cheers
Ken

"J Talbot" wrote in message
news:4667cf7a$0$5362$9a6e19ea@unlimited.newshosting.com...
> Thanks Ken for your interesting articles which certainly make the process
> much clearer. However, after reading through :
>
> 1) The IE client has "Enable IWA" turned on. SERVER B is in the Local
> Intranet zone and I have "Automatic logon only in Intranet Zone" enabled.
> 2) from reading your articles I was under the impression that SPN for IIS
> is correctly set if the application group is running as Network Service -
> which it already is.
>
> I have also turned Kerberos logging on for both servers but no errors are
> showing in Event Viewer | System
>
> Thanks
>
> JT
>
>
> "Ken Schaefer" wrote in message
> news:eJi0btLqHHA.4132@TK2MSFTNGP02.phx.gbl...
>> IIS and Kerberos Part 1 - What is Kerberos and how does it work?
>> http://www.adopenstatic.com/cs/blogs/ken/archive/2006/10/19/ 512.aspx
>>
>> IIS and Kerberos Part 2 - What are Service Principal Names?
>> http://www.adopenstatic.com/cs/blogs/ken/archive/2006/11/19/ 606.aspx
>>
>> IIS and Kerberos. Part 3 - A simple scenario
>> http://www.adopenstatic.com/cs/blogs/ken/archive/2007/01/16/ 1054.aspx
>>
>> IIS and Kerberos Part 4 - A simple delegation scenario
>> http://www.adopenstatic.com/cs/blogs/ken/archive/2007/01/27/ 1282.aspx
>>
>> You need to verify that IE is configured correctly
>> You need to ensure that an SPN for CIFS is correctly set
>> You need to ensure that the client is using Kerberos to authenticate to
>> IIS (because you choose the "trust this computer to delegate to any
>> service" - this procludes Protocol Transition)
>>
>> Cheers
>> Ken
>>
>>
>> "J Talbot" wrote in message
>> news:4666c503$0$10210$9a6e19ea@unlimited.newshosting.com...
>>> Hi
>>>
>>> I have read a lot of articles on how to configure delegation correctly
>>> to enable me to use IWA to gain access to an IIS site which is based on
>>> a shared folder located on another computer in the domain but it doesn't
>>> let me in and was wondering if someone knew why. This is a pure 2003
>>> domain.
>>>
>>> I have setup the following :
>>>
>>> SERVER A (the domain controller) - has the shared folder
>>> SERVER B has the virtual folder setup in IIS that is pointing to the
>>> share located on another computer (i..e. \\SERVERA\share\ - For the
>>> directory security I have anonymous access off and IWA turned on. I also
>>> have "Read" and "Directory browsing" turned on. The folder itself has
>>> Everyone full permissions.
>>>
>>> In Active Directory I have set Delegation for SERVER B to "Trust this
>>> computer to delegation for any service".
>>>
>>> However, when I go to site on SERVER B (logged in as domain admin) I am
>>> asked for manual login - attempting to login as Domain Admin I just get
>>> asked repeatedly until I get a 401.3 - Access denied error.
>>>
>>> Are there any other steps I need to take for this to work ?
>>>
>>> Thanks
>>>
>>> JT
>>>
>>>
>>>
>>
>>
>
>

Re: Delegation / IIS6 / share located on another computer

am 07.06.2007 15:27:27 von J Talbot

Hmm no it's attempted login using NTLM - any idea on what would make it
fall back to NTLM ?

Thanks

John

"Ken Schaefer" wrote in message
news:OIGd7VPqHHA.1220@TK2MSFTNGP04.phx.gbl...
> Hi,
>
> Can you look in the Security Event log of the webserver, and verify that
> the client is actually authenticating using Kerberos (and not NTLM)?
>
> http://www.adopenstatic.com/cs/blogs/ken/archive/2006/08/02/ 194.aspx has
> screenshots of what you are looking for.
>
> Cheers
> Ken
>
> "J Talbot" wrote in message
> news:4667cf7a$0$5362$9a6e19ea@unlimited.newshosting.com...
>> Thanks Ken for your interesting articles which certainly make the process
>> much clearer. However, after reading through :
>>
>> 1) The IE client has "Enable IWA" turned on. SERVER B is in the Local
>> Intranet zone and I have "Automatic logon only in Intranet Zone" enabled.
>> 2) from reading your articles I was under the impression that SPN for
>> IIS is correctly set if the application group is running as Network
>> Service - which it already is.
>>
>> I have also turned Kerberos logging on for both servers but no errors are
>> showing in Event Viewer | System
>>
>> Thanks
>>
>> JT
>>
>>
>> "Ken Schaefer" wrote in message
>> news:eJi0btLqHHA.4132@TK2MSFTNGP02.phx.gbl...
>>> IIS and Kerberos Part 1 - What is Kerberos and how does it work?
>>> http://www.adopenstatic.com/cs/blogs/ken/archive/2006/10/19/ 512.aspx
>>>
>>> IIS and Kerberos Part 2 - What are Service Principal Names?
>>> http://www.adopenstatic.com/cs/blogs/ken/archive/2006/11/19/ 606.aspx
>>>
>>> IIS and Kerberos. Part 3 - A simple scenario
>>> http://www.adopenstatic.com/cs/blogs/ken/archive/2007/01/16/ 1054.aspx
>>>
>>> IIS and Kerberos Part 4 - A simple delegation scenario
>>> http://www.adopenstatic.com/cs/blogs/ken/archive/2007/01/27/ 1282.aspx
>>>
>>> You need to verify that IE is configured correctly
>>> You need to ensure that an SPN for CIFS is correctly set
>>> You need to ensure that the client is using Kerberos to authenticate to
>>> IIS (because you choose the "trust this computer to delegate to any
>>> service" - this procludes Protocol Transition)
>>>
>>> Cheers
>>> Ken
>>>
>>>
>>> "J Talbot" wrote in message
>>> news:4666c503$0$10210$9a6e19ea@unlimited.newshosting.com...
>>>> Hi
>>>>
>>>> I have read a lot of articles on how to configure delegation correctly
>>>> to enable me to use IWA to gain access to an IIS site which is based on
>>>> a shared folder located on another computer in the domain but it
>>>> doesn't let me in and was wondering if someone knew why. This is a pure
>>>> 2003 domain.
>>>>
>>>> I have setup the following :
>>>>
>>>> SERVER A (the domain controller) - has the shared folder
>>>> SERVER B has the virtual folder setup in IIS that is pointing to the
>>>> share located on another computer (i..e. \\SERVERA\share\ - For the
>>>> directory security I have anonymous access off and IWA turned on. I
>>>> also have "Read" and "Directory browsing" turned on. The folder itself
>>>> has Everyone full permissions.
>>>>
>>>> In Active Directory I have set Delegation for SERVER B to "Trust this
>>>> computer to delegation for any service".
>>>>
>>>> However, when I go to site on SERVER B (logged in as domain admin) I am
>>>> asked for manual login - attempting to login as Domain Admin I just get
>>>> asked repeatedly until I get a 401.3 - Access denied error.
>>>>
>>>> Are there any other steps I need to take for this to work ?
>>>>
>>>> Thanks
>>>>
>>>> JT
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>

Re: Delegation / IIS6 / share located on another computer

am 08.06.2007 03:51:37 von DaveMo

On Jun 7, 6:27 am, "J Talbot" wrote:
> Hmm no it's attempted login using NTLM - any idea on what would make it
> fall back to NTLM ?
>
> Thanks
>
> John
>
> "Ken Schaefer" wrote in message
>
> news:OIGd7VPqHHA.1220@TK2MSFTNGP04.phx.gbl...
>
>
>
> > Hi,
>
> > Can you look in the Security Event log of the webserver, and verify that
> > the client is actually authenticating using Kerberos (and not NTLM)?
>
> >http://www.adopenstatic.com/cs/blogs/ken/archive/2006/08/02 /194.aspxhas
> > screenshots of what you are looking for.
>
> > Cheers
> > Ken
>
> > "J Talbot" wrote in message
> >news:4667cf7a$0$5362$9a6e19ea@unlimited.newshosting.com...
> >> Thanks Ken for your interesting articles which certainly make the process
> >> much clearer. However, after reading through :
>
> >> 1) The IE client has "Enable IWA" turned on. SERVER B is in the Local
> >> Intranet zone and I have "Automatic logon only in Intranet Zone" enabled.
> >> 2) from reading your articles I was under the impression that SPN for
> >> IIS is correctly set if the application group is running as Network
> >> Service - which it already is.
>
> >> I have also turned Kerberos logging on for both servers but no errors are
> >> showing in Event Viewer | System
>
> >> Thanks
>
> >> JT
>
> >> "Ken Schaefer" wrote in message
> >>news:eJi0btLqHHA.4132@TK2MSFTNGP02.phx.gbl...
> >>> IIS and Kerberos Part 1 - What is Kerberos and how does it work?
> >>>http://www.adopenstatic.com/cs/blogs/ken/archive/2006/10/ 19/512.aspx
>
> >>> IIS and Kerberos Part 2 - What are Service Principal Names?
> >>>http://www.adopenstatic.com/cs/blogs/ken/archive/2006/11/ 19/606.aspx
>
> >>> IIS and Kerberos. Part 3 - A simple scenario
> >>>http://www.adopenstatic.com/cs/blogs/ken/archive/2007/01/ 16/1054.aspx
>
> >>> IIS and Kerberos Part 4 - A simple delegation scenario
> >>>http://www.adopenstatic.com/cs/blogs/ken/archive/2007/01/ 27/1282.aspx
>
> >>> You need to verify that IE is configured correctly
> >>> You need to ensure that an SPN for CIFS is correctly set
> >>> You need to ensure that the client is using Kerberos to authenticate to
> >>> IIS (because you choose the "trust this computer to delegate to any
> >>> service" - this procludes Protocol Transition)
>
> >>> Cheers
> >>> Ken
>
> >>> "J Talbot" wrote in message
> >>>news:4666c503$0$10210$9a6e19ea@unlimited.newshosting.com. ..
> >>>> Hi
>
> >>>> I have read a lot of articles on how to configure delegation correctly
> >>>> to enable me to use IWA to gain access to an IIS site which is based on
> >>>> a shared folder located on another computer in the domain but it
> >>>> doesn't let me in and was wondering if someone knew why. This is a pure
> >>>> 2003 domain.
>
> >>>> I have setup the following :
>
> >>>> SERVER A (the domain controller) - has the shared folder
> >>>> SERVER B has the virtual folder setup in IIS that is pointing to the
> >>>> share located on another computer (i..e. \\SERVERA\share\ - For the
> >>>> directory security I have anonymous access off and IWA turned on. I
> >>>> also have "Read" and "Directory browsing" turned on. The folder itself
> >>>> has Everyone full permissions.
>
> >>>> In Active Directory I have set Delegation for SERVER B to "Trust this
> >>>> computer to delegation for any service".
>
> >>>> However, when I go to site on SERVER B (logged in as domain admin) I am
> >>>> asked for manual login - attempting to login as Domain Admin I just get
> >>>> asked repeatedly until I get a 401.3 - Access denied error.
>
> >>>> Are there any other steps I need to take for this to work ?
>
> >>>> Thanks
>
> >>>> JT- Hide quoted text -
>
> - Show quoted text -

The only reason that the client should fall back to NTLM in this
scenario is if the KDC can not find a host account that would match
the URL.

What is the URL that is used in IE?
What is the name of the IIS server?

Dave

Re: Delegation / IIS6 / share located on another computer

am 08.06.2007 09:49:25 von J Talbot

The URL that is used is http://serverb:81 (the port IIS is running on)
The IIS server is called serverb

http://serverb is in the local intranet zone on the client and as mentioned
earlier Enable IWA is turned on.

Thanks

John


"DaveMo" wrote in message
> The only reason that the client should fall back to NTLM in this
> scenario is if the KDC can not find a host account that would match
> the URL.
>
> What is the URL that is used in IE?
> What is the name of the IIS server?
>
> Dave
>
>

Re: Delegation / IIS6 / share located on another computer

am 08.06.2007 14:37:41 von DaveMo

On Jun 8, 12:49 am, "J Talbot" wrote:
> The URL that is used ishttp://serverb:81 (the port IIS is running on)
> The IIS server is called serverb
>
> http://serverbis in the local intranet zone on the client and as mentioned
> earlier Enable IWA is turned on.
>
> Thanks
>
> John
>
>
>
> "DaveMo" wrote in message
> > The only reason that the client should fall back to NTLM in this
> > scenario is if the KDC can not find a host account that would match
> > the URL.
>
> > What is the URL that is used in IE?
> > What is the name of the IIS server?
>
> > Dave- Hide quoted text -
>
> - Show quoted text -

SPNs can be applied to a unique port and since you aren't using the
default port for HTTP this might be why the ticket request is failing.
Try setspn -A http/serverb:81 serverb (assuming IIS virtual folder is
configured to use an app pool using Network Service/Local System
identity).

This is just a guess - I don't know whether using a different port
would cause the failure and I can't easily repro your problem at this
time.

A good diagnostic tool for this kind of problem is the latest version
of klist. If you can find the right version it allows you to request
tickets to arbitrary services from the command line and makes it a bit
more direct to figure out what the failure cases might be.

HTH.

Dave

Re: Delegation / IIS6 / share located on another computer

am 08.06.2007 16:17:27 von J Talbot

thanks for the pointer

"DaveMo" wrote in message
news:1181306261.842227.179340@p77g2000hsh.googlegroups.com.. .
> On Jun 8, 12:49 am, "J Talbot" wrote:
>> The URL that is used ishttp://serverb:81 (the port IIS is running on)
>> The IIS server is called serverb
>>
>> http://serverbis in the local intranet zone on the client and as
>> mentioned
>> earlier Enable IWA is turned on.
>>
>> Thanks
>>
>> John
>>
>>
>>
>> "DaveMo" wrote in message
>> > The only reason that the client should fall back to NTLM in this
>> > scenario is if the KDC can not find a host account that would match
>> > the URL.
>>
>> > What is the URL that is used in IE?
>> > What is the name of the IIS server?
>>
>> > Dave- Hide quoted text -
>>
>> - Show quoted text -
>
> SPNs can be applied to a unique port and since you aren't using the
> default port for HTTP this might be why the ticket request is failing.
> Try setspn -A http/serverb:81 serverb (assuming IIS virtual folder is
> configured to use an app pool using Network Service/Local System
> identity).
>
> This is just a guess - I don't know whether using a different port
> would cause the failure and I can't easily repro your problem at this
> time.
>
> A good diagnostic tool for this kind of problem is the latest version
> of klist. If you can find the right version it allows you to request
> tickets to arbitrary services from the command line and makes it a bit
> more direct to figure out what the failure cases might be.
>
> HTH.
>
> Dave
>
>

Re: Delegation / IIS6 / share located on another computer

am 09.06.2007 06:00:58 von Ken Schaefer

DaveMo is correct.

If you are accessing IIS on a non-standard port, then there is no SPN
currently registered for that FQDN. Reread the link I posted earlier on SPNs
for instructions on how to configure an additional SPN for your IIS server
on that non-standard port.

Cheers
Ken

"J Talbot" wrote in message
news:46690a6d$0$18884$9a6e19ea@unlimited.newshosting.com...
> The URL that is used is http://serverb:81 (the port IIS is running on)
> The IIS server is called serverb
>
> http://serverb is in the local intranet zone on the client and as
> mentioned earlier Enable IWA is turned on.
>
> Thanks
>
> John
>
>
> "DaveMo" wrote in message
>> The only reason that the client should fall back to NTLM in this
>> scenario is if the KDC can not find a host account that would match
>> the URL.
>>
>> What is the URL that is used in IE?
>> What is the name of the IIS server?
>>
>> Dave
>>
>>
>
>

Re: Delegation / IIS6 / share located on another computer

am 11.06.2007 09:47:32 von J Talbot

Thanks to both of you. This was the problem.

John

"Ken Schaefer" wrote in message
news:e5fuKrkqHHA.1220@TK2MSFTNGP04.phx.gbl...
> DaveMo is correct.
>
> If you are accessing IIS on a non-standard port, then there is no SPN
> currently registered for that FQDN. Reread the link I posted earlier on
> SPNs for instructions on how to configure an additional SPN for your IIS
> server on that non-standard port.
>
> Cheers
> Ken
>
> "J Talbot" wrote in message
> news:46690a6d$0$18884$9a6e19ea@unlimited.newshosting.com...
>> The URL that is used is http://serverb:81 (the port IIS is running on)
>> The IIS server is called serverb
>>
>> http://serverb is in the local intranet zone on the client and as
>> mentioned earlier Enable IWA is turned on.
>>
>> Thanks
>>
>> John
>>
>>
>> "DaveMo" wrote in message
>>> The only reason that the client should fall back to NTLM in this
>>> scenario is if the KDC can not find a host account that would match
>>> the URL.
>>>
>>> What is the URL that is used in IE?
>>> What is the name of the IIS server?
>>>
>>> Dave
>>>
>>>
>>
>>
>
>