Groups | Blog | Home
all groups > iis security > august 2004 >

iis security : Windows 2000 IIS Logon issue


Jonny Bergdahl
8/11/2004 3:44:40 PM
I have a web with a section of it setup to require a password. I have
enabled Basic authentication and added the local domain to the default
domain setting.

When I log in using just my logon name, access is denied and the following
is logged in the Security event log:
Security/Account Logon/EventID 681:
The logon to account: <deleted>
by: MICROSOFT_AUTHENTICATION_PACKAGE_V1_0
from workstation: <deleted>
failed. The error code was: 3221225572

The error codes indicates that the user does not exist???

If I enter the logon name in the DOMAIN\USERNAME style, everything works as
intended.

Question is; Why is IIS ignoring my default domain setting, and how do I get
this to work as intended?

Regards;
/jb

v-wzhang NO[at]SPAM online.microsoft.com (
8/12/2004 3:34:03 AM
Hi Jonny,

Looks like the default logon domain setting for Basic auth hasn't
taken effect. Please do not click 'browse' to select your domain but
simply input your domain name(just the same as the prefix of
<domain>\<username> without '\') in the 'Domain Name' textbox. Also,
please make sure there isn't other authentication selected, only
choose Basic. After the changes, run iisreset command to restart IIS
and browse to the site to test again.

Please let us know if the problem still persists.

Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security
Ken Schaefer
8/12/2004 12:31:57 PM
Do you have any of the other authentication mechanisms checked? Or only
basic?

Cheers
Ken

[quoted text, click to view]

Jonny Bergdahl
8/12/2004 1:17:01 PM
[quoted text, click to view]

I have verified that the domain name is entered correctly, and the machine
has been completely rebooted since the settings were made. It works when
autentication is made over NTML, but not when using Basic.

This is the result when running Wfetch (Basic, only User and Passwd set):
REQUEST: **************\n
GET /templates/Home.asp?id=2213 HTTP/1.0\r\n
Host: 10.1.2.19\r\n
Accept: */*\r\n
Connection: Keep-Alive\r\n
Authorization: Basic <xxxx>\r\n
\r\n
RESPONSE: **************\n
HTTP/1.1 401 Unauthorized\r\n
Via: 1.1 FIREWALL\r\n
Connection: close\r\n
Proxy-Support: Session-Based-Authentication\r\n
Connection: Proxy-Support\r\n
Expires: Fri, 04 Jun 2004 00:26:29 GMT\r\n
Date: Thu, 12 Aug 2004 11:06:29 GMT\r\n
Content-Type: text/html\r\n
Server: Microsoft-IIS/5.0\r\n
WWW-Authenticate: Negotiate\r\n
WWW-Authenticate: NTLM\r\n
WWW-Authenticate: Basic realm="10.1.2.19"\r\n
Pragma: no-cache\r\n
Set-Cookie: loggedon=1; path=/\r\n
Cache-control: no-store\r\n
\r\n

This is the result when running Wfetch (Basic, Domain, User and Passwd set):
REQUEST: **************\n
GET /templates/Home.asp?id=2213 HTTP/1.0\r\n
Host: 10.1.2.19\r\n
Accept: */*\r\n
Connection: Keep-Alive\r\n
Authorization: Basic <xxxx>\r\n
\r\n
RESPONSE: **************\n
HTTP/1.1 200 OK\r\n
Via: 1.1 FIREWALL\r\n
Connection: Keep-Alive\r\n
Proxy-Connection: Keep-Alive\r\n
Content-Length: 5524\r\n
Expires: Fri, 04 Jun 2004 00:31:11 GMT\r\n
Date: Thu, 12 Aug 2004 11:11:11 GMT\r\n
Content-Type: text/html\r\n
Server: Microsoft-IIS/5.0\r\n
Pragma: no-cache\r\n
Set-Cookie: loggedon=1; path=/\r\n
Cache-control: no-store\r\n
\r\n

For comparision (NTML, only User and Passwd set):
REQUEST: **************\n
GET /templates/Home.asp?id=2213 HTTP/1.0\r\n
Host: 10.1.2.19\r\n
Accept: */*\r\n
Connection: Keep-Alive\r\n
Authorization: NTLM <xxxxx>\r\n
\r\n
RESPONSE: **************\n
HTTP/1.1 401 Access Denied\r\n
Via: 1.1 FIREWALL\r\n
Connection: Keep-Alive\r\n
Proxy-Support: Session-Based-Authentication\r\n
Connection: Proxy-Support\r\n
Content-Length: 24\r\n
Date: Thu, 12 Aug 2004 11:08:22 GMT\r\n
Content-Type: text/html\r\n
Server: Microsoft-IIS/5.0\r\n
WWW-Authenticate: NTLM <xxxxx>\r\n
\r\n
SEC_E_OK - InitializeSecurityContext\n
Error: Access is Denied.
REQUEST: **************\n
GET /templates/Home.asp?id=2213 HTTP/1.0\r\n
Host: 10.1.2.19\r\n
Accept: */*\r\n
Connection: Keep-Alive\r\n
Authorization: NTLM <xxxxx>\r\n
\r\n
RESPONSE: **************\n
HTTP/1.1 200 OK\r\n
Via: 1.1 FIREWALL\r\n
Connection: Keep-Alive\r\n
Proxy-Connection: Keep-Alive\r\n
Content-Length: 5524\r\n
Expires: Fri, 04 Jun 2004 00:28:22 GMT\r\n
Date: Thu, 12 Aug 2004 11:08:22 GMT\r\n
Content-Type: text/html\r\n
Server: Microsoft-IIS/5.0\r\n
Pragma: no-cache\r\n
Set-Cookie: loggedon=1; path=/\r\n
Cache-control: no-store\r\n
\r\n

Please advice.

Regards;
/jb

v-wzhang NO[at]SPAM online.microsoft.com (
8/13/2004 5:24:36 AM
Hi Jonny,

Integrated authentication doesn't work with the default logon domain
setting. So if you can login the site via NTLM without input the
<domain>\ prefix, it means you should have a local account with the
same username and password on this IIS server. You can check if there
is the local account on this box.

Also, a general reason for an account NTLM auth works but Basic not
is the account doesn't have 'log on locally' permission in GPO(i.e
local security policy). 'Log on locally' is required by Basic but not
required by NTLM because one is CLEARTEXT logon type and the other is
NETWORK logon.

Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security
Ken Schaefer
8/13/2004 11:13:27 AM
Hi,

Can you see this header?

WWW-Authenticate: Basic realm="10.1.2.19"

The "realm" should list your domain. 10.1.2.19 is not a Windows domain. A
Windows domain should be the NetBIOS name of the domain in question.

Cheers
Ken


[quoted text, click to view]

Jonny Bergdahl
8/13/2004 11:24:22 AM
[quoted text, click to view]

Yes, I was wondering about that one as well. I can't find anywhere to enter
it, and it seems that IIS actually takes this value from the HOST header in
the request.

Regards;
/jb

v-wzhang NO[at]SPAM online.microsoft.com (
8/16/2004 7:49:01 AM
Hi Jonny,

Have you checked the server's local SAM yet? Does the same local
account exist?

Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security
Jonny Bergdahl
8/16/2004 1:44:40 PM
[quoted text, click to view]

Yes, I have. There are no users defined locally, except for the ones that
gets installed by default.

We are running ISA Server to forward request from the internet, can this
possibly make any difference?

Regards;
/jb

Jonny Bergdahl
8/16/2004 2:47:18 PM
[quoted text, click to view]

It seem to do exactly the opposite, I can log in without entering the domain
part if using NTML, and I can't log in without entering the domain part when
using Basic.

[quoted text, click to view]

There is no problem with that setting because I can log in using any
autentication scheme as long as I enter the domain part.

Problem is that I don't want the users to know (or care) that they are using
a domain logon.

Regards;
/jb

v-wzhang NO[at]SPAM online.microsoft.com (
8/17/2004 7:57:25 AM
Hi Jonny,

If the ISA server and IIS is setup on the same box, please directly
access the internal IP being binded by IIS - http://<internal
IP>:<port>/ . This bypasses the ISA proxy, please test if the
behavior is still the same. If ISA proxy is on another box, please
test on the IIS server via localhost.

Also, can you please export your metabase configuration and send it
to me? I'd like to check metadata for problems. You can install the
MetaEdit tool and export whole the W3SVC node to a txt file:

How To Install MetaEdit 2.2 on Windows NT 4.0 or Windows 2000
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q301386&sd=tec
h

My email address: v-wzhang@online.microsoft.com (Please remove
online.)

Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security
AddThis Social Bookmark Button