<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Squid + Win2008R2 Kerberos auth]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=27799&amp;type=atom" />
	<updated>2014-07-01T09:42:31Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=27799</id>
		<entry>
			<title type="html"><![CDATA[Re: Squid + Win2008R2 Kerberos auth]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=414756#p414756" />
			<content type="html"><![CDATA[<p>Пошаговое описание настройки Squid 3.3.8, в том числе и настройка аутентификации Kerberos/NTLM, на базе Ubuntu Server 14.04 LTS<br />Ссылка на первую из десяти частей:<br /><a href="http://blog.it-kb.ru/2014/06/16/forward-proxy-squid-3-3-on-ubuntu-server-14-04-lts-part-1-install-os-on-hyper-v-generation-2-vm/">http://blog.it-kb.ru/2014/06/16/forward … tion-2-vm/</a></p>]]></content>
			<author>
				<name><![CDATA[maksimov-ai]]></name>
				<uri>https://linuxforum.ru/profile.php?id=34715</uri>
			</author>
			<updated>2014-07-01T09:42:31Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=414756#p414756</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Squid + Win2008R2 Kerberos auth]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=408228#p408228" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Serega955 пишет:</cite><blockquote><p>Проблему решить удалось. Было доделано:<br />1)сборка и установка negotiate_wrapper <br /> После этого проблема не решилась, но я наткнулся на статью, там говорилась, прописать проксю в браузере по доменному имени, а не по IP, по сему<br />2)прописать проксю по доменному имени, а не по IP<br /> В моем случаи squid.local.net </p><p>После данных операций access лог</p><p>1365963750.667&nbsp; &nbsp; 232 10.10.1.10 TCP_MISS/200 32750 GET <a href="http://www.google.ru/">http://www.google.ru/</a> Administrator@LOCAL.NET DIRECT/74.125.143.94 text/html<br />1365963750.894&nbsp; &nbsp; &nbsp; 0 10.10.1.10 TCP_DENIED/407 4817 GET <a href="http://www.google.ru/csi?">http://www.google.ru/csi?</a> - NONE/- text/html<br />1365963750.926&nbsp; &nbsp; &nbsp;31 10.10.1.10 TCP_MISS/204 684 GET <a href="http://www.google.ru/csi?">http://www.google.ru/csi?</a> Administrator@LOCAL.NET DIRECT/74.125.143.94 image/gif</p><p>squid.conf оставил вот так</p><div class="codebox"><pre><code>##Auth Kerberos
auth_param negotiate program /usr/lib/squid3/squid_kerb_auth -d
auth_param negotiate children 10
auth_param negotiate keep_alive off</code></pre></div><p>Enzo_brn, благодарен за помощь, спасибо.</p></blockquote></div><p>Не прокатывает как ни крутил конфиг одно и то же валится <br /></p><div class="codebox"><pre><code>authenticateNegotiateHandleReply: Error validating user via Negotiate. Error returned &#039;BH received type 1 NTLM token&#039;</code></pre></div><p>как победить подскажите хоть что нить....</p>]]></content>
			<author>
				<name><![CDATA[ustas1983]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20175</uri>
			</author>
			<updated>2014-05-08T09:20:48Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=408228#p408228</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Squid + Win2008R2 Kerberos auth]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=340348#p340348" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Serega955⇓ пишет:</cite><blockquote><p>Я так понял, что negotiate_wrapper используется для того, что бы использовать метод аутентификации через Kerberos и NTLM, ну тоесть как бы предоставляет например браузеру именно тот метод, который им поддерживается. А что если я хочу например использовать просто kerberos? Как этого добиться без negotiate?</p></blockquote></div><p>как я понял: basic,digest,ntlm,negotiate - типы (4 шт) аутентификации, а вот у типа аутентификации &quot;negotiate&quot;, которая происходит через специально заточенный под это враппер (negotiate_wrapper) и является &quot;more secure than NTLM и еще чего-то там..&quot; есть 2 пути работы: через &quot;type 1 token - NTLM&quot; либо &quot;type 2 token - Kerberos&quot;. Хотя я использовал ntlm, однако в каком-то одном(опере, кажется) браузере все-равно через раз выскакивало окно аутентификации. Хотя и в <span style="color: blue">http://opera:config</span> опция Enable NTLM. вкл..</p>]]></content>
			<author>
				<name><![CDATA[Me_Shock]]></name>
				<uri>https://linuxforum.ru/profile.php?id=14860</uri>
			</author>
			<updated>2013-04-15T03:47:21Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=340348#p340348</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Squid + Win2008R2 Kerberos auth]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=340317#p340317" />
			<content type="html"><![CDATA[<p>Проблему решить удалось. Было доделано:<br />1)сборка и установка negotiate_wrapper <br /> После этого проблема не решилась, но я наткнулся на статью, там говорилась, прописать проксю в браузере по доменному имени, а не по IP, по сему<br />2)прописать проксю по доменному имени, а не по IP<br /> В моем случаи squid.local.net </p><p>После данных операций access лог</p><p>1365963750.667&nbsp; &nbsp; 232 10.10.1.10 TCP_MISS/200 32750 GET <a href="http://www.google.ru/">http://www.google.ru/</a> Administrator@LOCAL.NET DIRECT/74.125.143.94 text/html<br />1365963750.894&nbsp; &nbsp; &nbsp; 0 10.10.1.10 TCP_DENIED/407 4817 GET <a href="http://www.google.ru/csi?">http://www.google.ru/csi?</a> - NONE/- text/html<br />1365963750.926&nbsp; &nbsp; &nbsp;31 10.10.1.10 TCP_MISS/204 684 GET <a href="http://www.google.ru/csi?">http://www.google.ru/csi?</a> Administrator@LOCAL.NET DIRECT/74.125.143.94 image/gif</p><p>squid.conf оставил вот так</p><div class="codebox"><pre><code>##Auth Kerberos
auth_param negotiate program /usr/lib/squid3/squid_kerb_auth -d
auth_param negotiate children 10
auth_param negotiate keep_alive off</code></pre></div><p>Enzo_brn, благодарен за помощь, спасибо.</p>]]></content>
			<author>
				<name><![CDATA[Serega955]]></name>
				<uri>https://linuxforum.ru/profile.php?id=29466</uri>
			</author>
			<updated>2013-04-14T18:13:26Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=340317#p340317</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Squid + Win2008R2 Kerberos auth]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=340307#p340307" />
			<content type="html"><![CDATA[<p>Нет, видимо в этом и есть моя ошибка.. Статью по первой ссылке я посмотрел, весьма полезно. Сейчас поставлю его. Может быть вы мне еще подскажете, по поводу логики процесса. Я так понял, что negotiate_wrapper используется для того, что бы использовать метод аутентификации через Kerberos и NTLM, ну тоесть как бы предоставляет например браузеру именно тот метод, который им поддерживается. А что если я хочу например использовать просто kerberos? Как этого добиться без negotiate?</p><p>Вернее, стоит уточнить, по теме вопроса.<br />В той ссылке, что я кинул в самом начале, есть отдельный пункт. <a href="http://wiki.squid-cache.org/ConfigExamples/Authenticate/WindowsActiveDirectory#Install_negotiate_wrapper">http://wiki.squid-cache.org/ConfigExamp … te_wrapper</a><br />Вот эту операцию я не выполнил, но <br />squid -v </p><div class="codebox"><pre><code>Squid Cache: Version 3.1.6
configure options:  &#039;--build=x86_64-linux-gnu&#039; &#039;--prefix=/usr&#039; &#039;--includedir=${prefix}/include&#039; &#039;--mandir=${prefix}/share/man&#039; &#039;--infodir=${prefix}/share/info&#039; &#039;--sysconfdir=/etc&#039; &#039;--localstatedir=/var&#039; &#039;--libexecdir=${prefix}/lib/squid3&#039; &#039;--disable-maintainer-mode&#039; &#039;--disable-dependency-tracking&#039; &#039;--disable-silent-rules&#039; &#039;--srcdir=.&#039; &#039;--datadir=/usr/share/squid3&#039; &#039;--sysconfdir=/etc/squid3&#039; &#039;--mandir=/usr/share/man&#039; &#039;--with-cppunit-basedir=/usr&#039; &#039;--enable-inline&#039; &#039;--enable-async-io=8&#039; &#039;--enable-storeio=ufs,aufs,diskd&#039; &#039;--enable-removal-policies=lru,heap&#039; &#039;--enable-delay-pools&#039; &#039;--enable-cache-digests&#039; &#039;--enable-underscores&#039; &#039;--enable-icap-client&#039; &#039;--enable-follow-x-forwarded-for&#039; &#039;--enable-auth=basic,digest,ntlm,negotiate&#039; &#039;--enable-basic-auth-helpers=LDAP,MSNT,NCSA,PAM,SASL,SMB,YP,DB,POP3,getpwnam,squid_radius_auth,multi-domain-NTLM&#039; &#039;--enable-ntlm-auth-helpers=smb_lm,&#039; &#039;--enable-digest-auth-helpers=ldap,password&#039; &#039;--enable-negotiate-auth-helpers=squid_kerb_auth&#039; &#039;--enable-external-acl-helpers=ip_user,ldap_group,session,unix_group,wbinfo_group&#039; &#039;--enable-arp-acl&#039; &#039;--enable-esi&#039; &#039;--disable-translation&#039; &#039;--with-logdir=/var/log/squid3&#039; &#039;--with-pidfile=/var/run/squid3.pid&#039; &#039;--with-filedescriptors=65536&#039; &#039;--with-large-files&#039; &#039;--with-default-user=proxy&#039; &#039;--enable-linux-netfilter&#039; &#039;build_alias=x86_64-linux-gnu&#039; &#039;CFLAGS=-g -O2 -g -Wall -O2&#039; &#039;LDFLAGS=&#039; &#039;CPPFLAGS=&#039; &#039;CXXFLAGS=-g -O2 -g -Wall -O2&#039; --with-squid=/tmp/buildd/squid3-3.1.6</code></pre></div><p>Вот этот пункт &#039;--enable-auth=basic,digest,ntlm,negotiate&#039;<br />Вот поэтому, я предпологал, что работать будет.</p>]]></content>
			<author>
				<name><![CDATA[Serega955]]></name>
				<uri>https://linuxforum.ru/profile.php?id=29466</uri>
			</author>
			<updated>2013-04-14T17:10:26Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=340307#p340307</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Squid + Win2008R2 Kerberos auth]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=340306#p340306" />
			<content type="html"><![CDATA[<p><strong>Serega955</strong>, а вы <a href="http://wiki.squid-cache.org/ConfigExamples/Authenticate/WindowsActiveDirectory#Install_negotiate_wrapper">negotiate_wrapper</a> ставили, чтобы его использовать? Секция: What do I need to do to support NEGOTIATE on Squid?</p>]]></content>
			<author>
				<name><![CDATA[Me_Shock]]></name>
				<uri>https://linuxforum.ru/profile.php?id=14860</uri>
			</author>
			<updated>2013-04-14T16:51:10Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=340306#p340306</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Squid + Win2008R2 Kerberos auth]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=340305#p340305" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Serega955⇓ пишет:</cite><blockquote><p>BH</p></blockquote></div><p>Failure. The helper encountered a problem. look this: <a href="http://wiki.squid-cache.org/Features/NegotiateAuthentication">http://wiki.squid-cache.org/Features/Ne … entication</a></p>]]></content>
			<author>
				<name><![CDATA[Me_Shock]]></name>
				<uri>https://linuxforum.ru/profile.php?id=14860</uri>
			</author>
			<updated>2013-04-14T16:44:55Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=340305#p340305</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Squid + Win2008R2 Kerberos auth]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=340299#p340299" />
			<content type="html"><![CDATA[<p>Доброго времени суток. Не выходит решить проблему с авторизацией пользователей. Помогите, знающие люди, или накидайте ссылок, т.к мне найти информацию не удалось.<br />И так...</p><p>ОС: Debian 6.0 x64<br />Я вооружился вот этим: <a href="http://wiki.squid-cache.org/ConfigExamples/Authenticate/WindowsActiveDirectory">http://wiki.squid-cache.org/ConfigExamp … eDirectory</a> </p><p>/etc/krb5.conf идентичен</p><p>kinit -v -k -t /etc/squid3/PROXY.keytab HTTP/squid.local.net <br />выполняется без ошибок</p><p>/usr/lib/squid3/squid_kerb_auth_test squid<br />возвращает билет</p><p>Права на keytab, само собой, как указано в мануале, в /etc/init.d/squid3 нужные строчки, для успешной работы kerberos так же добавлены.</p><div class="codebox"><pre><code>##Auth Kerberos
auth_param negotiate program /usr/lib/squid3/squid_kerb_auth -d -s HTTP/squid.local.net@LOCAL.NET
auth_param negotiate children 10
auth_param negotiate keep_alive off
##Auth LDAP
#external_acl_type internet_user %LOGIN /usr/lib/squid3/squid_ldap_group -R -b &quot;dc=LOCAL,dc=NET&quot; -f &quot;(&amp;(objectclass=user)(sAMAccountName=%v)(memberOf=cn=%a,,ou=grp,dc=local,dc=NET))&quot; -D squid@local.net -K -w &quot;Aa12345&quot; dc01
#acl LDAP_internet external internet_user internet
#
# Recommended minimum configuration:
#
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
acl SSL_ports port 443
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl CONNECT method CONNECT
#my acl
acl auth proxy_auth REQUIRED
#enforce auth
http_access allow auth
http_access deny all
#http_access allow LDAP_internet
#
# Recommended minimum Access Permission configuration:
#
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager
# Deny requests to certain unsafe ports
http_access deny !Safe_ports
# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
access_log /var/log/squid3/access.log squid
#port
http_port 10.10.1.1:3128</code></pre></div><p>Итог: IE просит пароль, авторизация, само собой никак не проходит. Firefox пишет, что Access Denied.<br />В логах access - error 407, cacher строки вот такого вида:<br /></p><div class="codebox"><pre><code>2013/04/14 20:12:16| authenticateNegotiateHandleReply: Error validating user via Negotiate. Error returned &#039;BH received type 1 NTLM token&#039;
2013/04/14 20:12:19| squid_kerb_auth: DEBUG: Got &#039;YR TlRMTVNTUAABAAAAl4II4gAAAAAAAAAAAAAAAAAAAAAGAbAdAAAADw==&#039; from squid (length: 59).
2013/04/14 20:12:19| squid_kerb_auth: DEBUG: Decode &#039;TlRMTVNTUAABAAAAl4II4gAAAAAAAAAAAAAAAAAAAAAGAbAdAAAADw==&#039; (decoded length: 40).
2013/04/14 20:12:19| squid_kerb_auth: WARNING: received type 1 NTLM token
2013/04/14 20:12:19| authenticateNegotiateHandleReply: Error validating user via Negotiate. Error returned &#039;BH received type 1 NTLM token&#039;</code></pre></div><p>Со squid я знаком около недели, не судите строго. Благодарю за внимание.</p>]]></content>
			<author>
				<name><![CDATA[Serega955]]></name>
				<uri>https://linuxforum.ru/profile.php?id=29466</uri>
			</author>
			<updated>2013-04-14T16:10:28Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=340299#p340299</id>
		</entry>
</feed>
