Organizational Research By

Surprising Reserch Topic

Question:IIS Windows Authentication weirdness



asked Sep 13, 2013 in ANDROID by rajesh
edited Sep 12, 2013
0 votes
25 views



Related Hot Questions

2 Answers

0 votes

I have a web server with two websites: a & b.
a is production.

b is testing/staging.

Whoever wrote these apps before me relies on

Request.ServerVariables("LOGON_USER") 

which is assigned when the user authenticates against the server via Windows Authentication. On a, this works great, on b there's some weirdness:

I get my login prompt, but i can't use [domain]\myusername to login, I can do it with \\myusername though, same passwords (AD based). The IIS configs are identical as far as I can tell, the only inconsistency is a DNS CNAME pointing from a.domain.com to b.domain.com. Changing that DNS record to point at the IP fixed the problem, but I'm trying to understand what was going on.

Previous DNS record: b.domain.com > a.domain.com

Working DNS record: b.domain.com > 10.0.x.131

It should've been b > a > regular windows authentication, but for some reason I found myself using \\ , is it tacking on the domain name twice or something? And what exactly is \\ in regards to authentication?

Make sense?

 

answered Sep 13, 2013 by rajesh
edited Sep 12, 2013
0 votes

I have a web server with two websites: a & b.
a is production.

b is testing/staging.

Whoever wrote these apps before me relies on

Request.ServerVariables("LOGON_USER") 

which is assigned when the user authenticates against the server via Windows Authentication. On a, this works great, on b there's some weirdness:

I get my login prompt, but i can't use [domain]\myusername to login, I can do it with \\myusername though, same passwords (AD based). The IIS configs are identical as far as I can tell, the only inconsistency is a DNS CNAME pointing from a.domain.com to b.domain.com. Changing that DNS record to point at the IP fixed the problem, but I'm trying to understand what was going on.

Previous DNS record: b.domain.com > a.domain.com

Working DNS record: b.domain.com > 10.0.x.131

It should've been b > a > regular windows authentication, but for some reason I found myself using \\ , is it tacking on the domain name twice or something? And what exactly is \\ in regards to authentication?

Make sense?

 

answered Sep 13, 2013 by rajesh
edited Sep 12, 2013

...