<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=PT-BR link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hello everyone,<o:p></o:p></p><p class=MsoNormal>Greetings.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>I got a strange situation with my SQUID 4.1 (FreeBSD 12.2 Stable environment).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Everything was working fine with Kerberos configuration and suddenly it stopped with the following error:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>==> /var/squid/logs/cache.log <==<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>negotiate_kerberos_auth.cc(182): pid=85679 :2022/05/20 13:35:43| negotiate_kerberos_auth: ERROR: gss_acquire_cred() failed: No credentials were supplied, or the credentials were unavailable or inaccessible. No principal in keytab matches desired name<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2022/05/20 13:35:43| negotiate_kerberos_auth: INFO: User not authenticated<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Judging by the “No principal in keytab matches desired name” message, I went immediately to the AD object to check if it was really missing the Principal entry.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>To my surprise, everything is there. (talking about the HTTP/fqdn@REALM entry).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Also, I checked the contents of my keytab, which looks OK, as it contains the HTTP/server01.mydomain.corp@MYDOMAIN.CORP entry as well.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Additionally, I checked the DNS configuration for the PTR and Reverse entries. It looks OK as well.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I have used “net ads join createupn=HTTP/server01.mydomain.corp@MYDOMAIN.CORP -k” commands to Join the Squid machine to Domain, and “net ads keytab create -k” to create a keytab.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Also, used the command “net ads keytab add HTTP” to add the HTTP entry to the keytab.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>This is the config used on SQUID for Kerberos:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>auth_param negotiate program /usr/local/libexec/squid/negotiate_kerberos_auth -d -i -s <a href="mailto:HTTP/server01.mydomain.corp@MYDOMAIN.CORP">HTTP/server01.mydomain.corp@MYDOMAIN.CORP</a> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>auth_param negotiate children 20 startup=10 idle=5<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>auth_param negotiate keep_alive off<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>As I mentioned, that was working for months, then stopped.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Are you guys aware of any Windows Update who may broke the Kerberos integration?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I have “Windows Server 2022 AD” and “WINDOWS 11” clients, working with “FreeBSD + SQUID + Kerberos Auth helper”<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Any help is very welcome!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Fabricio.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>