Kerberos error KDC_ERR_BADOPTION

Kerberos error KDC_ERR_BADOPTION

am 05.06.2006 18:21:58 von Tim

We are trying to configure an IIS 6.0 server for Kerberos but are recieving
the error:
KDC_ERR_BADOPTION. We followed this link
http://msdn.microsoft.com/msdnmag/issues/05/09/SecurityBrief s/ to help with
the initial setup.



Our environment is as such:

- Windows 2000 domain

- Server set up in AD to trust delegation

- App pool ID set up in AD to trust delegation

- Enabled Kerberos logging: http://support.microsoft.com/?id=262177

- Forced Kerberos to use TCP: http://support.microsoft.com/kb/244474

- Forced precedence of Kerberos over NTML:
http://www.microsoft.com/technet/prodtechnol/windowsserver20 03/technologies/security/kerbnlb.mspx



Any assistance would be greatly appreciated.



-Tim

RE: Kerberos error KDC_ERR_BADOPTION

am 06.06.2006 13:43:20 von wjzhang

Hi Tim,

Please make sure the client connects to the server has 'enable integrated
authentication' selected in IE internet options->advanced. Otherwise the
authentication protocol will be NTLM instead of Kerberos.

Another point is that you should change the site's application pool's
identity to Local System since you've enable the computer to be trusted for
delegation in AD.

Best regards,

WenJun Zhang
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no rights.

Re: Kerberos error KDC_ERR_BADOPTION

am 06.06.2006 20:49:58 von Tim

Still no luck. The clients were already configured with integrated
authentication and the site was added to the Local Intranet zone but the
client still looks to be authenticating through NTLM. Both IIS on the web
and SQL 2000 are set to run under local system.

From the web server:
Successful Network Logon:
User Name: userName
Domain: domainName
Logon ID: (0x0,0x1B8804)
Logon Type: 3
Logon Process: NtLmSsp
Authentication Package: NTLM
Workstation Name: workstationName
Logon GUID: -
Caller User Name: -
Caller Domain: -
Caller Logon ID: -
Caller Process ID: -
Transited Services: -
Source Network Address: 10.1.1.105
Source Port: 1327



""WenJun Zhang[msft]"" wrote in message
news:qC$ov5ViGHA.5608@TK2MSFTNGXA01.phx.gbl...
> Hi Tim,
>
> Please make sure the client connects to the server has 'enable integrated
> authentication' selected in IE internet options->advanced. Otherwise the
> authentication protocol will be NTLM instead of Kerberos.
>
> Another point is that you should change the site's application pool's
> identity to Local System since you've enable the computer to be trusted
> for
> delegation in AD.
>
> Best regards,
>
> WenJun Zhang
> Microsoft Online Partner Support
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
>

Re: Kerberos error KDC_ERR_BADOPTION

am 08.06.2006 15:57:45 von wjzhang

Hi Tim,

I suggest you use webfetch to perform a test and trace the rawdata of http
request/response. It will ensure Kerberos token can be properly sent to the
server-side.

HOW TO: Use Wfetch.exe to Troubleshoot HTTP Connections
http://support.microsoft.com/default.aspx?scid=kb;en-us;2842 85

To use, please input:

Host: (Your servername)
Path: (The relative path of your page. e.g: /simple.htm)
Auth: (Select Kerberos and input the proper username/password)

Press Go! to issue a http request to the server and check what response is
returned. You can paste the whole log data here for me to take a look.

Best regards,

WenJun Zhang
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no rights.

Re: Kerberos error KDC_ERR_BADOPTION

am 09.06.2006 16:41:33 von Tim

Here is the output from the log:


started....
WWWConnect::Connect("http://vmdynamics.labtsc.com","80")\n
0x2af9 (No such host is known.): getaddrinfo()
finished.


""WenJun Zhang[msft]"" wrote in message
news:$VCTLOwiGHA.4500@TK2MSFTNGXA01.phx.gbl...
> Hi Tim,
>
> I suggest you use webfetch to perform a test and trace the rawdata of http
> request/response. It will ensure Kerberos token can be properly sent to
> the
> server-side.
>
> HOW TO: Use Wfetch.exe to Troubleshoot HTTP Connections
> http://support.microsoft.com/default.aspx?scid=kb;en-us;2842 85
>
> To use, please input:
>
> Host: (Your servername)
> Path: (The relative path of your page. e.g: /simple.htm)
> Auth: (Select Kerberos and input the proper username/password)
>
> Press Go! to issue a http request to the server and check what response is
> returned. You can paste the whole log data here for me to take a look.
>
> Best regards,
>
> WenJun Zhang
> Microsoft Online Partner Support
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
>

Re: Kerberos error KDC_ERR_BADOPTION

am 09.06.2006 21:14:29 von Tim

Sorry about that, I didn't run the test correctly. I re-ran it and this was
the output:

started....
Reusing existing connection (source port 4210)\n
ISC_REQ_MUTUAL_AUTH | ISC_REQ_DELEGATE set\n
0x80090303 (The specified target is unknown or unreachable): Unable to
InitializeSecurityContext
finished.
WWWConnect::Close("vmdynamics","80")\n
closed source port: 4210\r\n


""WenJun Zhang[msft]"" wrote in message
news:$VCTLOwiGHA.4500@TK2MSFTNGXA01.phx.gbl...
> Hi Tim,
>
> I suggest you use webfetch to perform a test and trace the rawdata of http
> request/response. It will ensure Kerberos token can be properly sent to
> the
> server-side.
>
> HOW TO: Use Wfetch.exe to Troubleshoot HTTP Connections
> http://support.microsoft.com/default.aspx?scid=kb;en-us;2842 85
>
> To use, please input:
>
> Host: (Your servername)
> Path: (The relative path of your page. e.g: /simple.htm)
> Auth: (Select Kerberos and input the proper username/password)
>
> Press Go! to issue a http request to the server and check what response is
> returned. You can paste the whole log data here for me to take a look.
>
> Best regards,
>
> WenJun Zhang
> Microsoft Online Partner Support
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
>

Re: Kerberos error KDC_ERR_BADOPTION

am 09.06.2006 21:40:28 von Tim

Ran the same test again using the IP instead of the host name and got this:

started....
Reusing existing connection (source port 4291)\n
ISC_REQ_MUTUAL_AUTH | ISC_REQ_DELEGATE set\n
SEC_I_CONTINUE_NEEDED\n
REQUEST: **************\n
GET /loader.aspx HTTP/1.1\r\n
Host: 10.1.1.201\r\n
Accept: */*\r\n
Connection: Keep-Alive\r\n
Authorization: Kerberos
YIIKcQYJKoZIhvcSAQICAQBuggpgMIIKXKADAgEFoQMCAQ6iBwMFACAAAACj ggSFYYIEgTCCBH2gAwIBBaEMGwpMQUJUU0MuQ09Noh0wG6ADAgECoRQwEhsE SFRUUBs
KMTAuMS4xLjIwMaOCBEcwggRDoAMCARehAwIBAqKCBDUEggQxt6zAFegMXIn TTftiqMGwWeBjqX7oCPMF667YyohsBpV+rcX2sd25wbZ1dRwl6FlMBBSY/w2 xinvSeBJIaaRpueEab9BKcNiZ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VyU33ZXLdymkSWa6cGzsAE+vzI0YhvG+zFKpE2+CwlQMS/QBnKXZs9 XSV5dIrPqV4TS8E+xfScwgDGJTPb8H48I3vOrQw5i21fs8brKvf3/tfBf+2h A==\r\n
\r\n
RESPONSE: **************\n
HTTP/1.1 401 Unauthorized\r\n
Content-Length: 1656\r\n
Content-Type: text/html\r\n
Server: Microsoft-IIS/6.0\r\n
WWW-Authenticate: Negotiate\r\n
X-Powered-By: ASP.NET\r\n
Date: Fri, 09 Jun 2006 19:37:58 GMT\r\n
\r\n
"http://www.w3.org/TR/html4/strict.dtd">\r\n
You are not authorized to view this page\r\n
\r\n
\r\n

\r\n
\r\n

You are not authorized to view this page

\r\n
You do not have permission to view this directory or page using the
credentials that you supplied because your Web browser is sending a
WWW-Authenticat
e header field that the Web server is not configured to accept.\r\n

\r\n

Please try the following:

\r\n
    \r\n
  • Contact the Web site administrator if you believe you should be able to
    view this directory or page.
  • \r\n
  • Click the button to
    try again with different credentials.
  • \r\n
\r\n

HTTP Error 401.2 - Unauthorized: Access is denied due to server
configuration.
Internet Information Services (IIS)

\r\n

\r\n

Technical Information (for support personnel)

\r\n
    \r\n
  • Go to Microsoft
    Product Support Services
    and perform a title search for the words
    HTTP
    and 401.
  • \r\n
  • Open IIS Help, which is accessible in IIS Manager (inetmgr),\r\n
    and search for topics titled About Security, Authentication,
    and About Custom Error Messages.
  • \r\n
\r\n
\r\n
\r\n
finished.





""WenJun Zhang[msft]"" wrote in message
news:$VCTLOwiGHA.4500@TK2MSFTNGXA01.phx.gbl...
> Hi Tim,
>
> I suggest you use webfetch to perform a test and trace the rawdata of http
> request/response. It will ensure Kerberos token can be properly sent to
> the
> server-side.
>
> HOW TO: Use Wfetch.exe to Troubleshoot HTTP Connections
> http://support.microsoft.com/default.aspx?scid=kb;en-us;2842 85
>
> To use, please input:
>
> Host: (Your servername)
> Path: (The relative path of your page. e.g: /simple.htm)
> Auth: (Select Kerberos and input the proper username/password)
>
> Press Go! to issue a http request to the server and check what response is
> returned. You can paste the whole log data here for me to take a look.
>
> Best regards,
>
> WenJun Zhang
> Microsoft Online Partner Support
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
>

Re: Kerberos error KDC_ERR_BADOPTION

am 12.06.2006 16:12:21 von wjzhang

Hi Tim,

This indicates Kerberos auth actually didn't work on your server. Please
make sure your KDC is correctly configured and also check if integrated
windows auth is enabled in IIS.

Also by default, both Kerberos and NTLM are enabled in
NTAuthenticationProviders metabase entry. You may have to verify this to
see if Kerberos is removed.

215383 How to configure IIS to support both the Kerberos protocol and the
NTLM protocol for network authentication
http://support.microsoft.com/default.aspx?scid=kb;EN-US;2153 83

Best regards,

WenJun Zhang
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no rights.

Re: Kerberos error KDC_ERR_BADOPTION

am 12.06.2006 17:41:00 von Tim

I verified that the IIS server is running integrated authentication and that
the metabase is set to Negotiate,NTLM as described in the article. Do you
have any suggestions on what areas we might look into on the KDC?

-Tim


""WenJun Zhang[msft]"" wrote in message
news:fQVdCpijGHA.4948@TK2MSFTNGXA01.phx.gbl...
> Hi Tim,
>
> This indicates Kerberos auth actually didn't work on your server. Please
> make sure your KDC is correctly configured and also check if integrated
> windows auth is enabled in IIS.
>
> Also by default, both Kerberos and NTLM are enabled in
> NTAuthenticationProviders metabase entry. You may have to verify this to
> see if Kerberos is removed.
>
> 215383 How to configure IIS to support both the Kerberos protocol and the
> NTLM protocol for network authentication
> http://support.microsoft.com/default.aspx?scid=kb;EN-US;2153 83
>
> Best regards,
>
> WenJun Zhang
> Microsoft Online Partner Support
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
>

Re: Kerberos error KDC_ERR_BADOPTION

am 13.06.2006 10:23:20 von wjzhang

Hi Tim,

If so, what's the result in webfetch with Kerberos auth? Could you provide
me with the trace to take a look?

If Kerberos auth actually fails on the server-side, you will have to post a
new thread to our Windows 2003 security or AD newsgroup to troubleshoot the
Kerberos auth part.

Best regards,

WenJun Zhang
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no rights.

Re: Kerberos error KDC_ERR_BADOPTION

am 13.06.2006 18:07:10 von Tim

Here is the result:

started....
WWWConnect::Connect("vmdynamics","80")\n
IP = "10.1.1.201:80"\n
source port: 2022\r\n
ISC_REQ_MUTUAL_AUTH | ISC_REQ_DELEGATE set\n
0x80090303 (The specified target is unknown or unreachable): Unable to
InitializeSecurityContext
finished.
WWWConnect::Close("vmdynamics","80")\n
closed source port: 2022\r\n



""WenJun Zhang[msft]"" wrote in message
news:4XuCoKsjGHA.764@TK2MSFTNGXA01.phx.gbl...
> Hi Tim,
>
> If so, what's the result in webfetch with Kerberos auth? Could you provide
> me with the trace to take a look?
>
> If Kerberos auth actually fails on the server-side, you will have to post
> a
> new thread to our Windows 2003 security or AD newsgroup to troubleshoot
> the
> Kerberos auth part.
>
> Best regards,
>
> WenJun Zhang
> Microsoft Online Partner Support
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
>

Re: Kerberos error KDC_ERR_BADOPTION

am 14.06.2006 14:37:22 von wjzhang

Hi Tim,

I'm not sure why it would fail with servername but worked with IP address
but I believe this should be related to the root cause. Looks like the
problem client has some problem on communicating with your domain
controller? Otherwise there shouldn't be such kind of name resolution
issue. You may try to remove the client machine from your domain and then
add it back to have a test.

If it's still no success, please post the issue to our Windows AD or
security newsgroup for suggestions. Thanks.

Best regards,

WenJun Zhang
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no rights.

Re: Kerberos error KDC_ERR_BADOPTION

am 14.06.2006 17:36:14 von Tim

No luck there either. I'll try the other NG. Thank you very much for your
help.

-Tim


""WenJun Zhang[msft]"" wrote in message
news:SeNzO96jGHA.4528@TK2MSFTNGXA01.phx.gbl...
> Hi Tim,
>
> I'm not sure why it would fail with servername but worked with IP address
> but I believe this should be related to the root cause. Looks like the
> problem client has some problem on communicating with your domain
> controller? Otherwise there shouldn't be such kind of name resolution
> issue. You may try to remove the client machine from your domain and then
> add it back to have a test.
>
> If it's still no success, please post the issue to our Windows AD or
> security newsgroup for suggestions. Thanks.
>
> Best regards,
>
> WenJun Zhang
> Microsoft Online Partner Support
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
>