[squid-users] squid_ldap_auth basic against Windows AD: Don't ask for user/password

From: MarceloK <[email protected]>
Date: Wed, 25 Oct 2006 11:17:21 -0300

Hello everyone from the list.

I am using squid_ldap_auth in order to authenticate in a Windows Active Directory. When the command squid_ldap_auth is issued from a command line, it works well. But when using a browser, the prompt for user/password dont't appears. And I can surf the web normally. The child processes for authentication are started. I searched the list without success for a solution. If I comment external_acl_type entry the behavior is the same. Any suggestion are welcome. Follow my squid.conf:

auth_param basic program /usr/local/squid/libexec/squid_ldap_auth -R -u cn -b "dc=domain,dc=com,dc=br" -D "cn=USERPROXY,ou=Internet,dc=domain,dc=com,dc=br" -w "proxyuserpassword" -f sAMAccountName=%s -h ldap://10.0.0.5 -v 3 -p 389
auth_param basic realm Internet control
auth_param basic children 5
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off

external_acl_type ldap_group %LOGIN /usr/local/squid/libexec/squid_ldap_group -R -b "dc=domain,dc=com,dc=br" -D "cn=USERPROXY,ou=Internet,dc=domain,dc=com,dc=br" -w "proxyuserpassword" -f"(&(objectclass=Person)(sAMAccountName=%v)(memberof=cn=%a,ou=Internet,dc=domain,dc=com,dc=br))" -h ldap://10.0.0.5

acl domainusers proxy_auth REQUIRED
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl internalnet src 10.0.0.0/255.0.0.0
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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 Sage_ports port 8080 # aplicacoes Tomcat
acl CONNECT method CONNECT

acl bloqueio_palavra url_regex "/usr/local/squid/regras/bloq_palavra"
acl bloqueio_dominio dstdomain "/usr/local/squid/regras/bloq_dominio"
acl spyware url_regex "/usr/local/squid/regras/blacklistspy"

# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager

# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports

http_access deny bloqueio_palavra
http_access deny bloqueio_dominio
http_access deny spyware

http_access allow internalnet
http_access allow domainusers

http_access deny all

Thanks

Marcelo Koehler
Received on Wed Oct 25 2006 - 08:17:18 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Nov 01 2006 - 12:00:04 MST