-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
We are not aible to connect to a Windows WinRM using Kerberos authentication when on the WinRM configuration the CBT is configured to strict:
In this case the authentication will failed with the following error:
Apr 4 09:26:00 [3239] Endpoint: https://win-ohvnvel4k8j.pgum.local:5986/wsman
Apr 4 09:26:00 [3239] cl->authentication.verify_peer: 0
Apr 4 09:26:00 [3239] *****set post buf len = 1168******
* Trying 10.10.100.219...
* TCP_NODELAY set
* Connected to win-ohvnvel4k8j.pgum.local (10.10.100.219) port 5986 (#0)
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
* subject: CN=WIN-OHVNVEL4K8J.pgum.local
* start date: Apr 4 06:00:40 2025 GMT
* expire date: Apr 4 06:00:40 2026 GMT
* issuer: DC=local; DC=pgum; CN=pgum-WIN-OHVNVEL4K8J-CA
* SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
> POST /wsman HTTP/1.1
Host: win-ohvnvel4k8j.pgum.local:5986
Accept: */*
Content-Type: application/soap+xml;charset=UTF-8
User-Agent: WS-Management for all
Content-Length: 1168
Expect: 100-continue
< HTTP/1.1 401
< Server: Microsoft-HTTPAPI/2.0
< WWW-Authenticate: Negotiate
< WWW-Authenticate: Kerberos
< Date: Fri, 04 Apr 2025 07:25:59 GMT
< Connection: close
< Content-Length: 0
<
* Closing connection 0
Apr 4 09:26:00 [3239] GSS-Negotiate authentication is used
* Hostname win-ohvnvel4k8j.pgum.local was found in DNS cache
* Trying 10.10.100.219...
* TCP_NODELAY set
* Connected to win-ohvnvel4k8j.pgum.local (10.10.100.219) port 5986 (#1)
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSL re-using session ID
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use http/1.1
* old SSL session ID is stale, removing
* Server certificate:
* subject: CN=WIN-OHVNVEL4K8J.pgum.local
* start date: Apr 4 06:00:40 2025 GMT
* expire date: Apr 4 06:00:40 2026 GMT
* issuer: DC=local; DC=pgum; CN=pgum-WIN-OHVNVEL4K8J-CA
* SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
> POST /wsman HTTP/1.1
Host: win-ohvnvel4k8j.pgum.local:5986
Accept: */*
Content-Type: application/soap+xml;charset=UTF-8
User-Agent: WS-Management for all
Content-Length: 1168
Expect: 100-continue
< HTTP/1.1 401
< Server: Microsoft-HTTPAPI/2.0
< WWW-Authenticate: Negotiate
< WWW-Authenticate: Kerberos
< Date: Fri, 04 Apr 2025 07:25:59 GMT
< Connection: close
< Content-Length: 0
<
* Closing connection 1
* Issue another request to this URL: 'https://win-ohvnvel4k8j.pgum.local:5986/wsman'
* Hostname win-ohvnvel4k8j.pgum.local was found in DNS cache
* Trying 10.10.100.219...
* TCP_NODELAY set
* Connected to win-ohvnvel4k8j.pgum.local (10.10.100.219) port 5986 (#2)
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSL re-using session ID
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use http/1.1
* old SSL session ID is stale, removing
* Server certificate:
* subject: CN=WIN-OHVNVEL4K8J.pgum.local
* start date: Apr 4 06:00:40 2025 GMT
* expire date: Apr 4 06:00:40 2026 GMT
* issuer: DC=local; DC=pgum; CN=pgum-WIN-OHVNVEL4K8J-CA
* SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
* Server auth using Negotiate with user ''
> POST /wsman HTTP/1.1
Host: win-ohvnvel4k8j.pgum.local:5986
Authorization: Negotiate YIIF9QYGKwYBBQUCoIIF6TCCBeWgDTALBgkqhkiG9xIBAgKiggXSBIIFzmCCBcoGCSqGSIb3EgECAgEAboIFuTCCBbWgAwIBBaEDAg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WYBkvztC8bwhyetAG0A0+NVsreIbQ8JQ2Bkq384HrKOUBKTlihX25jnIgbJqKS25+D7AfJPaYadr96xqW6lW3K9clHinF44O/LWp3Ybe4A9w3aIMK2+vXzT8CPfxFbgLzu8qzRPZKjs8aeZiTmWP6DefvNFRt5+XYQtxW7LUuJCWV77nSpmGVqMp9WmRK6LWZ1qtgzDuo7ARXRfUJgsF2rK3+naAzgOwlBUZ5u0F/vpdDLpnx9coD0jjFHfNfWR7sLFWS1q1giP/3MpVDthsb5BH4nrdIUMKrtJ/+lWyPv8EI/TUfWitk47XAJcKaY4gj2gSNg7nMmjd3NQb1pUICRScLPtJsIC1sJm4V5L8abZZGf2RFO9Ybn18Q7PI3GzToWughrEO5svA/HnL5YGP/FhRsEHudG2NOM71CqHbSo2DB/KsVkO/Ldt0h19ZxK6TogwKhycfRqU1nD05/h2oyHOCHx3i4Mx0rOd433FNW0d2ZjNnEnFvUl3u6su2sCeJHZxzEYRwRJonTZtVcjq6GfvwNcpIH4MIH1oAMCARKige0EgeqcIUWB6zFS76gmpCa4COlzb2XpNuEKzaQ6O5FfiupIwahPQ3lGoz1YDPvTHI2XTwrnbJzmmz4MtIIOwAwVEmEtaFZcm3mzlzTkVJwBxOA5ZBl3Fd8Gx4BD7geXAzQ6PRsRDo4akuRO2PTC+Xrd+WLs2jKrEV9BlguD0BF7klQDmPgT7wp4lbjUpI8LNThouuU3OSsBOG4+YzJ5Xs8VXgmetkeDhmlRLMtSMEyyCDCbCxuNtRyhXJKNEwphkKTmuEh98f47grhXzwC4tZnSp85EhpHOl7Iz5/byMBFmUXpD35b/u7gX3zCGfrw=
Accept: */*
Content-Type: application/soap+xml;charset=UTF-8
User-Agent: WS-Management for all
Content-Length: 1168
Expect: 100-continue
< HTTP/1.1 401
< Server: Microsoft-HTTPAPI/2.0
< WWW-Authenticate: Negotiate
< WWW-Authenticate: Kerberos
< Date: Fri, 04 Apr 2025 07:25:59 GMT
< Connection: close
< Content-Length: 0
<
* Closing connection 2
Authentication failed, please retry
Apr 4 09:26:00 [3239] GSS-Negotiate authentication is used
Apr 4 09:26:00 [3239] Invoking Auth request callback
Apr 4 09:26:00 [3239] No username. Authorization canceled
Apr 4 09:26:00 [3239] Error = 67 (Login denied); user/password wrong or empty.
Apr 4 09:26:00 [3239] curl error code: 67.
Apr 4 09:26:00 [3239] cl->response_code: 401.
Apr 4 09:26:00 [3239] cl->last_error code: 26.
UNKNOWN: Could not enumerate instances: Login denied
If we disable CBT or set it to "relaxed" it will work without any issue.
Seems that this configuration is not supported actually or did you know how we need to configure openwsman to support this?
Metadata
Metadata
Assignees
Labels
No labels
