puszamba
August 7th, 2012, 03:44 AM
Dear All,
At first I would like to say hello as this is my first post here.
Thank you in advance for any thoughts, tips and solutions.
Problem descritpion:
I have installed squid3 and would like to set it as proxy with 'require-member-of' ntlm_auth helper for squid. It should authenticate against Active Directory (2003 schema).
Problem is that basic authentication works but ntlm does not.
I have run winbindd in debug mode and this is what I got when username/password prompts from IE:
process_request: unknown request fn number 14
winbind_client_response_written[13395:unknown request]: delivered response to client
When squid.conf is set to use just basic authentication it works fine (from FireFox).
Server was successfully joined to the AD and
wbinfo -a
wbinfo -t
wbinfo -g
and so on... all succeed or just work fine.
EDIT:
Strange thing I have noticed is that example:
# /usr/local/bin/ntlm_auth --helper-protocol=squid-2.5-basic
mydomain+myuser mypasswd
OK from http://wiki.squid-cache.org/ConfigExamples/Authenticate/Ntlm
Does not work in my case. It just freezes the cli and winbindd debug says:
accepted socket 24
process_request: request fn INTERFACE_VERSION
[14665]: request interface version
winbind_client_response_written[14665:INTERFACE_VERSION]: delivered response to client
process_request: request fn WINBINDD_PRIV_PIPE_DIR
[14665]: request location of privileged pipe
winbind_client_response_written[14665:WINBINDD_PRIV_PIPE_DIR]: delivered response to client
process_request: request fn DOMAIN_NAME
[14665]: request domain name
winbind_client_response_written[14665:DOMAIN_NAME]: delivered response to client
It does nothing until ctrl+c is hit.
/EDIT
System:
Ubuntu 12.04 x64 running as guest on MS Hyper-V, installed latest updates, samba, winbind and squid3 installed with apt.
Package versions:
Samba and winbid: 2:3.6.3-2ubuntu2.3
Squid3 version: 3.1.19-1ubuntu3.12.0.4.1
Configuration files:
squid.conf - it is based on default one, cut to minimal as I intended to test ntlm helper; also fields such as MYDOMAIN are set correctly and were changed for puprose of this post...
auth_param ntlm program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp --require-membership-of="MYDOMAIN+mygroup"
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
acl mygroupusers proxy_auth REQUIRED
http_access allow mygroupusers
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
http_port 3128
coredump_dir /var/spool/squid3
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
refresh_pattern . 0 20% 4320
smb.conf
[global]
local master = no
security = ADS
workgroup = MYDOMAIN
realm = MYDOMAIN.REALM
netbios name = mynetbiosname
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind enum users = yes
winbind enum groups = yes
winbind use default domain = yes
winbind separator = +
client use spnego = yes
ntlm auth = yes
client ntlmv2 auth = yes
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
Thank you!
At first I would like to say hello as this is my first post here.
Thank you in advance for any thoughts, tips and solutions.
Problem descritpion:
I have installed squid3 and would like to set it as proxy with 'require-member-of' ntlm_auth helper for squid. It should authenticate against Active Directory (2003 schema).
Problem is that basic authentication works but ntlm does not.
I have run winbindd in debug mode and this is what I got when username/password prompts from IE:
process_request: unknown request fn number 14
winbind_client_response_written[13395:unknown request]: delivered response to client
When squid.conf is set to use just basic authentication it works fine (from FireFox).
Server was successfully joined to the AD and
wbinfo -a
wbinfo -t
wbinfo -g
and so on... all succeed or just work fine.
EDIT:
Strange thing I have noticed is that example:
# /usr/local/bin/ntlm_auth --helper-protocol=squid-2.5-basic
mydomain+myuser mypasswd
OK from http://wiki.squid-cache.org/ConfigExamples/Authenticate/Ntlm
Does not work in my case. It just freezes the cli and winbindd debug says:
accepted socket 24
process_request: request fn INTERFACE_VERSION
[14665]: request interface version
winbind_client_response_written[14665:INTERFACE_VERSION]: delivered response to client
process_request: request fn WINBINDD_PRIV_PIPE_DIR
[14665]: request location of privileged pipe
winbind_client_response_written[14665:WINBINDD_PRIV_PIPE_DIR]: delivered response to client
process_request: request fn DOMAIN_NAME
[14665]: request domain name
winbind_client_response_written[14665:DOMAIN_NAME]: delivered response to client
It does nothing until ctrl+c is hit.
/EDIT
System:
Ubuntu 12.04 x64 running as guest on MS Hyper-V, installed latest updates, samba, winbind and squid3 installed with apt.
Package versions:
Samba and winbid: 2:3.6.3-2ubuntu2.3
Squid3 version: 3.1.19-1ubuntu3.12.0.4.1
Configuration files:
squid.conf - it is based on default one, cut to minimal as I intended to test ntlm helper; also fields such as MYDOMAIN are set correctly and were changed for puprose of this post...
auth_param ntlm program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp --require-membership-of="MYDOMAIN+mygroup"
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
acl mygroupusers proxy_auth REQUIRED
http_access allow mygroupusers
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
http_port 3128
coredump_dir /var/spool/squid3
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
refresh_pattern . 0 20% 4320
smb.conf
[global]
local master = no
security = ADS
workgroup = MYDOMAIN
realm = MYDOMAIN.REALM
netbios name = mynetbiosname
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind enum users = yes
winbind enum groups = yes
winbind use default domain = yes
winbind separator = +
client use spnego = yes
ntlm auth = yes
client ntlmv2 auth = yes
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
Thank you!