# Squid + Kerbeos authentication

**URL:** <https://forums.suse.com/t/squid-kerbeos-authentication/25876>\
**Category:** SLES Configure-Administer\
**Created:** [July 18, 2014, 10:59am UTC](https://forums.suse.com/t/squid-kerbeos-authentication/25876 "2014-07-18T10:59:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdc\_renningen](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@sdc\_renningen](https://forums.suse.com/u/sdc_renningen)\
**Post date:** [July 18, 2014, 10:59am UTC](https://forums.suse.com/t/squid-kerbeos-authentication/25876/1 "2014-07-18T10:59:18Z")

</div>

Hi,

i wan to configure a sles (SUSE Linux Enterprise Server 11 (x86\_64) V11, PL3) to run a squid proxy with kerberos authentification to the local domain. i start to install/configure with this link:

[http://wiki.squid-cache.org/ConfigExamples/Authenticate/Kerberos](http://wiki.squid-cache.org/ConfigExamples/Authenticate/Kerberos)

the keytab was generated with samba.

wbinfo -g show me the existing ad groups. also wbinfo -u shows the current ad users. i also see the kerberos traffic to the windows dc on the wireshark that is installed on the sles system.

if i start a webbrowser that is configured to use the proxy service i get a login prombt, but authentication donÂ´t work. i also see no traffic from the sles system to the windows dc!  
error in sqiod log:

`2014/07/10 11:24:40| authenticateNegotiateHandleReply: Error validating user via Negotiate. Error returned 'BH received type 1 NTLM token'
2014/07/10 11:24:41| squid_kerb_auth: DEBUG: Got 'YR TlRMTVNTUAABAAAAl4II4gAAAAAAAAAAAAAAAAAAAAAGAbEdAAAADw==' from squid (length: 59).
2014/07/10 11:24:41| squid_kerb_auth: DEBUG: Decode 'TlRMTVNTUAABAAAAl4II4gAAAAAAAAAAAAAAAAAAAAAGAbEdAAAADw==' (decoded length: 40).
2014/07/10 11:24:41| squid_kerb_auth: WARNING: received type 1 NTLM token
`

krb5.conf

[CODE][libdefaults]

# default\_realm = [EXAMPLE.COM](http://EXAMPLE.COM)

# default\_realm = LOCAL

```
    default_realm = EPSCENTRAL.NET
    # Fred auf 2 x auf true
    dns_lookup_kdc = true
    dns_lookup_realm = true
    default_keytab_name = /etc/squid/HTTP.keytab
    ticket_lifetime = 24h
    renew_lifetime = 7d
    formwardable = true
    clockskew = 300

```

# default\_tgs\_enctypes = aes256-cts-hmac-sha1-96 rc4-hmac des-cbc-crc des-cbc-md5

# default\_tkt\_enctypes = aes256-cts-hmac-sha1-96 rc4-hmac des-cbc-crc des-cbc-md5

# permitted\_enctypes = aes256-cts-hmac-sha1-96 rc4-hmac des-cbc-crc des-cbc-md5

[realms]

# [EXAMPLE.COM](http://EXAMPLE.COM) = {

# kdc = [kerberos.example.com](http://kerberos.example.com)

# admin\_server = [kerberos.example.com](http://kerberos.example.com)

# }

[EPSCENTRAL.NET](http://EPSCENTRAL.NET) = {  
default\_domain = [epscentral.net](http://epscentral.net)  
kdc = [derigs0019srv.epscentral.net](http://derigs0019srv.epscentral.net)  
admin\_server = [derigs0019srv.epscentral.net](http://derigs0019srv.epscentral.net)  
}

[logging]  
kdc = FILE:/var/log/krb5/krb5kdc.log  
admin\_server = FILE:/var/log/krb5/kadmind.log  
default = SYSLOG:NOTICE:DAEMON

[domain\_realm]  
.epscentral.net = [EPSCENTRAL.NET](http://EPSCENTRAL.NET)  
[epscentral.net](http://epscentral.net) = [EPSCENTRAL.NET](http://EPSCENTRAL.NET)  
.EPSCENTRAL.NET = [EPSCENTRAL.NET](http://EPSCENTRAL.NET)  
[EPSCENTRAL.NET](http://EPSCENTRAL.NET) = [EPSCENTRAL.NET](http://EPSCENTRAL.NET)  
.stuttgart = [EPSCENTRAL.NET](http://EPSCENTRAL.NET)  
stuttgart = [EPSCENTRAL.NET](http://EPSCENTRAL.NET)  
.STUTTGART = [EPSCENTRAL.NET](http://EPSCENTRAL.NET)  
STUTTGART = [EPSCENTRAL.NET](http://EPSCENTRAL.NET)

[appdefaults]  
pam = {  
ticket\_lifetime = 1d  
renew\_lifetime = 1d  
forwardable = true  
proxiable = false  
minimum\_uid = 1  
clockskew = 300  
external = sshd  
use\_shmem = sshd  
keytab = /etc/squid/HTTP.keytab  
}  
[/CODE]

squid.conf:

```auto
auth_param negotiate program /usr/sbin/squid_kerb_auth -d -s HTTP/squid-proxy-3.epscentral.net@EPSCENTRAL.NET

auth_param negotiate children 10
auth_param negotiate keep_alive on
auth_param basic credentialsttl 2 hours

acl auth proxy_auth REQUIRED

# Error erscheint wenn aktiv: acl all src all
# acl all src all

# ACHTUNG FUER TEST - wenn diese Zeile aktiv, dann funktioniert Proxy, da ohne Kerberos (Domain) Zugriff vom localnet erlaubt ist
# http_access allow localnet
# oder:
# localhost
# als letzte Regel: alles verbieten
http_access deny !auth
http_access allow auth
http_access deny all
```

any ideas?

thanks, markus

---

<div class="post-metadata">

**Author:** ![sgrossiord123](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@sgrossiord123](https://forums.suse.com/u/sgrossiord123)\
**Post date:** [October 29, 2014, 3:27pm UTC](https://forums.suse.com/t/squid-kerbeos-authentication/25876/2 "2014-10-29T15:27:11Z")

</div>

Hi I have same issue with my config with Sles+AD=KERBEROS

Do you have troubleshooted your issue?

Thx a lot

Regards

Sébastien
