AW: [squid-users] No Kerberos Auth

From: Jarosch, Ralph <Ralph.Jarosch_at_justiz.niedersachsen.de>
Date: Tue, 30 Oct 2012 14:26:55 +0000

I think encrypte Type is already 28.
This is the output with -- encrypt 28

-- ldap_set_supportedEncryptionTypes: No need to change msDs-supportedEncryptionTypes they are 28

Von: Jarosch, Ralph
Gesendet: Dienstag, 30. Oktober 2012 15:24
An: 'Bastien Ceriani'
Cc: squid-users_at_squid-cache.org
Betreff: AW: [squid-users] No Kerberos Auth

Oh ok.. yes it work fine until ten minute i wrote the mail. There it crashed from one minute to the other I'am just troubleshoot the problem..

Von: Bastien Ceriani [mailto:bastien.ceriani_at_bulkypix.com]
Gesendet: Dienstag, 30. Oktober 2012 15:16
An: Jarosch, Ralph
Cc: squid-users_at_squid-cache.org
Betreff: Re: [squid-users] No Kerberos Auth

Ok Thx,

With Windows Server 2008 you should use --enctypes 28 parameter with msktutils command.

Did your ntlm authentification work fine ? How did you configure it ? With Samba/Winbind ?
On Tue, Oct 30, 2012 at 3:08 PM, Jarosch, Ralph <Ralph.Jarosch_at_justiz.niedersachsen.de> wrote:
OK for wireshark i must wait for tonight because no one here can work If enable authentication

My keytab

Keytab name: WRFILE:/etc/squid/HTTP.keytab
KVNO Timestamp         Principal
---- ----------------- --------------------------------------------------------
   6 10/30/12 09:47:42 http-proxy$@JUSTIZ.NIEDERSACHSEN.DE (arcfour-hmac)
   6 10/30/12 09:47:42 http-proxy$@JUSTIZ.NIEDERSACHSEN.DE (aes128-cts-hmac-sha1-96)
   6 10/30/12 09:47:42 http-proxy$@JUSTIZ.NIEDERSACHSEN.DE (aes256-cts-hmac-sha1-96)
   6 10/30/12 09:47:42 HTTP/http-proxy.justiz.niedersachsen.de_at_JUSTIZ.NIEDERSACHSEN.DE (arcfour-hmac)
   6 10/30/12 09:47:42 HTTP/http-proxy.justiz.niedersachsen.de_at_JUSTIZ.NIEDERSACHSEN.DE (aes128-cts-hmac-sha1-96)
   6 10/30/12 09:47:42 HTTP/http-proxy.justiz.niedersachsen.de_at_JUSTIZ.NIEDERSACHSEN.DE (aes256-cts-hmac-sha1-96)
   6 10/30/12 09:47:42 HTTP/http-proxy_at_JUSTIZ.NIEDERSACHSEN.DE (arcfour-hmac)
   6 10/30/12 09:47:42 HTTP/http-proxy_at_JUSTIZ.NIEDERSACHSEN.DE (aes128-cts-hmac-sha1-96)
   6 10/30/12 09:47:42 HTTP/http-proxy_at_JUSTIZ.NIEDERSACHSEN.DE (aes256-cts-hmac-sha1-96)
   6 10/30/12 09:47:42 HOST/HTTP-PROXY_at_JUSTIZ.NIEDERSACHSEN.DE (arcfour-hmac)
   6 10/30/12 09:47:42 HOST/HTTP-PROXY_at_JUSTIZ.NIEDERSACHSEN.DE (aes128-cts-hmac-sha1-96)
   6 10/30/12 09:47:42 HOST/HTTP-PROXY_at_JUSTIZ.NIEDERSACHSEN.DE (aes256-cts-hmac-sha1-96)

My Squid.conf

auth_param negotiate program /usr/lib64/squid/squid_kerb_auth -d -i -s HTTP/http-proxy.justiz.niedersachsen.de_at_JUSTIZ.NIEDERSACHSEN.DE
auth_param negotiate children 100
auth_param negotiate keep_alive on

auth_param ntlm keep_alive on
auth_param ntlm program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp
auth_param ntlm children 200

#auth_param ntlm max_challenge_reuses 0
#auth_param ntlm max_challenge_lifetime 2 minutes

auth_param basic program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-basic
auth_param basic children 200
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 5 hours

and my msktutil

msktutil -c -b "OU=Sonstige Server,OU=Globale Dienste,DC=justiz,DC=niedersachsen,DC=de" -s HTTP/http-proxy.justiz.niedersachsen.de -h http-proxy.justiz.niedersachsen.de -k /etc/HTTP.keytab --computer-name http-proxy --upn HTTP/http-proxy.justiz.niedersachsen.de --server justizhadc01.justiz.niedersachsen.de --verbose

We use Windows 2008 R2 Server

Von: Bastien Ceriani [mailto:bastien.ceriani_at_bulkypix.com]
Gesendet: Dienstag, 30. Oktober 2012 15:00
An: Jarosch, Ralph
Betreff: Re: [squid-users] No Kerberos Auth

I'm in the same case..
Try to check kerberos TGS REQ and TGS REP with wireshark ?

Can you display :
 - your keytab ? (klist -ekt HTTP.keytab)
 - your auth_param squid config
 - your mskutils command 

What version of windows server is running ?

Regards,

On Tue, Oct 30, 2012 at 2:49 PM, Jarosch, Ralph <Ralph.Jarosch_at_justiz.niedersachsen.de> wrote:
Hi,

i have some trouble to authenticate our web browser over Kerberos.
I Always get the following error message.

2012/10/30 14:27:55| squid_kerb_auth: DEBUG: Decode 'YIIJsQYGKwYBBQUCoIIJpTCCCaGgMDAuBgkqhkiC9xIBAgIGCSqGSIb3EgECAgYKKwYBBAGCNwICHgYKKwYBBAGCNwICCqKCCWsEgglnYIIJYwYJKoZIhvcSAQICAQBugglSMIIJTqADAgEFoQMCAQ6iBwMFACAAAACjggfWYYIH0jCCB86gAwIBBaEZGxdKVVNUSVouTklFREVSU0FDSFNFTi5ERaI1MDOgAwIBAqEsMCobBEhUVFAbImh0dHAtcHJveHkuanVzdGl6Lm5pZWRlcnNhY2hzZW4uZGWjggdzMIIHb6ADAgESoQMCAQaiggdhBIIHXZD9kqImwo4/wUYTAbzyxxCatVyvPJhdun6qKBUu8B9aMyWDY+7uyG36Uuu0i908tL8oHL+2x8CnoEYrascLrGifZrr9dldia7rKPg2uEl8lgqPAYGAZk/0HD5moUBmy4DrnWUtOEyfaqA4zWIW0rxAHbujQjDEfiWEG1/dwuDY/rXlXAGJ3HheS6DR/+L19bp79WsEVh8y/OS55bKOtpk0WdP3Ge/QqjnzrCZ2PWtEnAnTRcRhUpVc94VKG1KmedYcoMYclgP9CBukfO5NdV/g+sfCvfCbCO809nimrdu+0qUm746Xi5kEsBEOCUlW7OEtqrjssXZPxpjUmzJXBPF9cLGPyjpI66CDPuu6hwr5BEFvpqZyocQAFWoibzvTDY+ODtAZlQ24rhlWmVjlELEl8ebJLy72/sEJbtQYT6Xq4gtIurYmo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60WDt56R7jV119CZ2uIqJcbPYvMrw/QeS4vYf+TlcaUwYMdsPKZyeDXsiiJE5PYKh7CXpIZ4u7aMJPLuawZIpcXUtffmcRdz+zn18SXL+nrfA4af7AtBvUWWS4ybGDWDH72Uhd/08qnYEYd7IIWViu52G+0/EFkog6BnYVjyd1yYsoH/p6ztmIMVK12VXu9wh3wClHvpEtIM8ZkSvmvhIgYrkKO1LlriVwypSh8QmCUESjd36WNIM1HmUeshFu+Rk6+AZIxy+f71+qoU6dQom0oIB7vQ7gwRMa1tBuvf8RJagXnxjTaEJHQULkBfhGUcQ3VABR0J7ElLc4EPAshWBnJri10rNTz2O+oB4w2Uf01ieyu+Ks9apN8Ygf6ceH9sci+CZkEIwcgW24Wa8uHA==' (decoded length: 2485).
2012/10/30 14:27:55| squid_kerb_auth: ERROR: gss_acquire_cred() failed: Unspecified GSS failure.  Minor code may provide more information. Unknown error
2012/10/30 14:27:55| squid_kerb_auth: INFO: User not authenticated
2012/10/30 14:27:55| authenticateNegotiateHandleReply: Error validating user via Negotiate. Error returned 'BH gss_acquire_cred() failed: Unspecified GSS failure.  Minor code may provide more information. Unknown error'

I followed the manual  on http://wiki.squid-cache.org/ConfigExamples/Authenticate/Kerberos.
Everything worked fine an I created the HTTP.keytab with the msktutil.
I checked all with
[root_at_http-proxy /]#  kinit -V -k -t /etc/squid/HTTP.keytab HTTP/http-proxy.justiz.niedersachsen.de
Using default cache: /tmp/krb5cc_0
Using principal: HTTP/http-proxy.justiz.niedersachsen.de_at_JUSTIZ.NIEDERSACHSEN.DE
Using keytab: /etc/squid/HTTP.keytab
Authenticated to Kerberos v5

So I have no idea what I'm doing wrong.

Is there any other way to troubleshoot the problem. ????

Thank you

Ralph
Received on Tue Oct 30 2012 - 14:27:04 MDT

This archive was generated by hypermail 2.2.0 : Tue Oct 30 2012 - 12:00:05 MDT