Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Problem with impersonation and using a different host name.

Reply
Thread Tools

Problem with impersonation and using a different host name.

 
 
Patrick Meehan
Guest
Posts: n/a
 
      12-08-2005
I have developed a ASP.Net page with VS 2005 and SQL Server 2005. The server
I am using is Windows 2003 and I have set up 2 websites, one production and
one for test and development. This is our corporate intranet server and a
DNS entry is setup to point 'intranet' to this machine, however, the computer
name is different. Lets call it 'bob'. 'bob' has been trusted for
delegation.

If I go to http://bob.mydomain.net/mysite it works fine, both in test and
production. But if I go to http://intranet.mydomain.net/mysite I get "Login
failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

It seems pretty clear to me that the issue is the different DNS hostname,
but is there a work around for this?
 
Reply With Quote
 
 
 
 
Joe Kaplan \(MVP - ADSI\)
Guest
Posts: n/a
 
      12-08-2005
You need to give the machine account an additional service principal name
(SPN) for http/bob.mydomain.com. There is a tool called setspn.exe that
does this. Your domain admin must run it.

That should allow the you to do Kerberos authentication with the different
DNS name. That should in turn allow delegation (assuming both sites use
Network Service as the app pool identity).

Joe K.

"Patrick Meehan" <> wrote in message
news:FD903F9F-D1BB-44D9-A462-...
>I have developed a ASP.Net page with VS 2005 and SQL Server 2005. The
>server
> I am using is Windows 2003 and I have set up 2 websites, one production
> and
> one for test and development. This is our corporate intranet server and a
> DNS entry is setup to point 'intranet' to this machine, however, the
> computer
> name is different. Lets call it 'bob'. 'bob' has been trusted for
> delegation.
>
> If I go to http://bob.mydomain.net/mysite it works fine, both in test and
> production. But if I go to http://intranet.mydomain.net/mysite I get
> "Login
> failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
>
> It seems pretty clear to me that the issue is the different DNS hostname,
> but is there a work around for this?



 
Reply With Quote
 
 
 
 
Patrick Meehan
Guest
Posts: n/a
 
      12-08-2005
Thanks, that worked perfectly. Any suggested reading to explain what it just
did?

"Joe Kaplan (MVP - ADSI)" wrote:

> You need to give the machine account an additional service principal name
> (SPN) for http/bob.mydomain.com. There is a tool called setspn.exe that
> does this. Your domain admin must run it.
>
> That should allow the you to do Kerberos authentication with the different
> DNS name. That should in turn allow delegation (assuming both sites use
> Network Service as the app pool identity).
>
> Joe K.
>
> "Patrick Meehan" <> wrote in message
> news:FD903F9F-D1BB-44D9-A462-...
> >I have developed a ASP.Net page with VS 2005 and SQL Server 2005. The
> >server
> > I am using is Windows 2003 and I have set up 2 websites, one production
> > and
> > one for test and development. This is our corporate intranet server and a
> > DNS entry is setup to point 'intranet' to this machine, however, the
> > computer
> > name is different. Lets call it 'bob'. 'bob' has been trusted for
> > delegation.
> >
> > If I go to http://bob.mydomain.net/mysite it works fine, both in test and
> > production. But if I go to http://intranet.mydomain.net/mysite I get
> > "Login
> > failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
> >
> > It seems pretty clear to me that the issue is the different DNS hostname,
> > but is there a work around for this?

>
>
>

 
Reply With Quote
 
Joe Kaplan \(MVP - ADSI\)
Guest
Posts: n/a
 
      12-08-2005
You absolutely can't go wrong with Keith Brown's book.

http://www.amazon.com/gp/product/032...957441-5804624

Also, there are some good troubleshooting docs that MS publishes:

http://www.microsoft.com/technet/pro.../tkerberr.mspx

If you are going to be using delegation, it pays to learn as much as you can
about it. My experience is that it is difficult to predict your results or
understand failures until you do (from someone who is just now getting to be
able to do both with moderate success).

Joe K.

"Patrick Meehan" <> wrote in message
news:06624310-6F41-460D-B818-...
> Thanks, that worked perfectly. Any suggested reading to explain what it
> just
> did?
>
> "Joe Kaplan (MVP - ADSI)" wrote:
>
>> You need to give the machine account an additional service principal name
>> (SPN) for http/bob.mydomain.com. There is a tool called setspn.exe that
>> does this. Your domain admin must run it.
>>
>> That should allow the you to do Kerberos authentication with the
>> different
>> DNS name. That should in turn allow delegation (assuming both sites use
>> Network Service as the app pool identity).
>>
>> Joe K.
>>
>> "Patrick Meehan" <> wrote in
>> message
>> news:FD903F9F-D1BB-44D9-A462-...
>> >I have developed a ASP.Net page with VS 2005 and SQL Server 2005. The
>> >server
>> > I am using is Windows 2003 and I have set up 2 websites, one production
>> > and
>> > one for test and development. This is our corporate intranet server
>> > and a
>> > DNS entry is setup to point 'intranet' to this machine, however, the
>> > computer
>> > name is different. Lets call it 'bob'. 'bob' has been trusted for
>> > delegation.
>> >
>> > If I go to http://bob.mydomain.net/mysite it works fine, both in test
>> > and
>> > production. But if I go to http://intranet.mydomain.net/mysite I get
>> > "Login
>> > failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
>> >
>> > It seems pretty clear to me that the issue is the different DNS
>> > hostname,
>> > but is there a work around for this?

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to refer a control in the host page from a user control if the host page using masterpage Jerry Qu ASP .Net 1 02-20-2009 07:41 PM
Dane Cook: Great S.N.L. host or GREATEST S.N.L. host? Jojo the 90lb hottie Digital Photography 1 02-14-2007 04:55 AM
Cisco PIX 501 - Port forwarded to an internal host via Static NAT doesn't work from internal host JoelSeph Cisco 9 01-23-2006 03:52 PM
PIX: how to allow 1 host from outside interface to access another host on the inside interface? jonnah Cisco 1 04-21-2004 02:26 PM
request.getHeader("Host") returns wrong host name Orpheus66 Java 0 07-30-2003 02:59 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57