SQUID + Authentification Active directory

Installing, Configuring, Troubleshooting server daemons such as Web and Mail

SQUID + Authentification Active directory

Postby allla » 2011/01/05 08:56:31

hi
i just install squid 2.5 with squid guard
i realize the authentification off the user with a windows server active directory (domain example.com)
i configure the browser of my client to apply my proxy
but my probleme is when the client want to authentificate on browser and he does not belong to the domain example.com (client work group for example)
he must enter on the username : example\username
is there a possibiltie to remove the example\ from the username
allla
 
Posts: 4
Joined: 2010/02/16 09:27:00

Re: SQUID + Authentification Active directory

Postby chrisu » 2011/01/05 13:28:20

squid is in the ad domain?

with friendly greetings,

chrisu
chrisu
 
Posts: 4
Joined: 2011/01/03 10:35:04

Re: SQUID + Authentification Active directory

Postby allla » 2011/01/05 13:32:28

yes squid is on the domain
allla
 
Posts: 4
Joined: 2010/02/16 09:27:00

Re: SQUID + Authentification Active directory

Postby chrisu » 2011/01/05 14:46:00

can post your squid.conf
chrisu
 
Posts: 4
Joined: 2011/01/03 10:35:04

Re: SQUID + Authentification Active directory

Postby allla » 2011/01/05 14:51:23

auth_param ntlm program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp --require-membership-of="MDE+internautes"
auth_param ntlm children 5
auth_param ntlm keep_alive on
acl ntlm proxy_auth REQUIRED
acl password proxy_auth REQUIRED
acl all src 0.0.0.0/0.0.0.0
acl our_networks src 172.16.0.0/16 192.168.0.0/16
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 8080 # 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
http_access deny all
http_port 8080
cache_mem 500 MB
cache_dir ufs /var/spool/squid 5200 16 256
access_log /var/log/squid/access.log squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
dns_nameservers 172.16.10.1
append_domain .example.com
coredump_dir /var/spool/squid
url_rewrite_program /usr/bin/squidGuard -c /etc/squid/squidguard.conf
allla
 
Posts: 4
Joined: 2010/02/16 09:27:00

SQUID + Authentification Active directory

Postby yyagol » 2011/01/06 07:23:56

It took me long time to figure it out , the documentation on this subject
is very poor . this is an example to connect to an LDAP , AD is very similar
if you put the domain name on the string , the user will only need to enter his username without the domain in front .

Code: Select all
auth_param basic program /usr/lib/squid/squid_ldap_auth -v 3 -b "ou=People,dc=example,dc=com" ldap.example.com:389
external_acl_type ldapgroup  %LOGIN /usr/lib/squid/squid_ldap_group -v 3 -b "ou=group,dc=example,dc=com"  -f "(&(cn=%a)(memberUid=%u)(objectClass=posixGroup))" -h ldap.example.com


I hope that helps , AD is very similar to LDAP
yyagol
 
Posts: 1015
Joined: 2006/06/10 18:27:44
Location: 32 4′N 34 47′E

Re: SQUID + Authentification Active directory

Postby allla » 2011/01/06 09:56:09

thankyou
but it still not working
the squid is not allowing users (not from the domain) to enter username without (domain\username)
allla
 
Posts: 4
Joined: 2010/02/16 09:27:00

Re: SQUID + Authentification Active directory

Postby KermitDaFragger » 2011/01/06 22:23:24

What yyagol is proposing is an LDAP bind. Thats not Active Directory specific, you could use that for any directory server like OpenDS, 389, OpenLDAP, etc. This can also work with Active Directory (since that also has an LDAP server) but you will need to modify the filter. I doubt the objectclass posixGroup is in Active Directory :-)

If you want to utilize Windows Single Sign On you need SPNEGO, for which you need Squid 3.0
KermitDaFragger
 
Posts: 195
Joined: 2009/09/11 19:23:05
Location: the Netherlands

Re: SQUID + Authentification Active directory

Postby TylerDurden34 » 2012/05/11 08:11:30

I have the similar problem on my installation. Can you have an idea ??
TylerDurden34
 
Posts: 1
Joined: 2012/05/11 08:05:11


Return to CentOS 5 - Server Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron