yogy27
Goto Top

Squid 2.5 Stable12, LDAP auth an einer NDS

Hallo zusammen,

ich bin seid einiger Zeit dabei einen Squid Proxy zu konfigurieren, was bis jetzt auch relativ gut geklappt hat. Doch nun wird die ganze Sache ein wenig Haarig. Der Benutzer soll sich an dem Proxy authentifizieren und dieser soll anschließend eine anfange per LDAP an die NDS stellen, ob der User vorhanden ist & ob das Passwort stimmt.

Die Kommunikation zwischen dem Proxy und der NDS funktioniert einwandfrei, dies hab ich per ldapsearch getestet. Ich denke das etwas an dem auth_pharm falsch ist, doch leider weiss ich erlichgesagt nicht was. Mitlerweile hab ich ziehmlich viele möglichkeiten versucht... z.Zt sieht meine squid.conf so aus:

  1. NETWORK OPTIONS #
  2. --------------- #

http_port 8080

  1. AUTH-PHARMS #
  2. ----------- #

auth_param basic program /usr/sbin/squid_ldap_auth -b o=swms -f cn=%s -w password
auth_param basic children 4
auth_param basic realm NDS
auth_param basic credentialsttl 60 minute

  1. ACCESS CONTROLS #
  2. --------------- #

acl all src 0.0.0.0/0.0.0.0
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network

acl password proxy_auth REQUIRED
acl SSL_ports port 636
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 allow localnet
#http_access deny all
#http_access deny !Safe_ports
#http_access deny CONNECT !SSL_ports
#miss_access allow all
#ident_lookup_access deny all
#icp_access allow localnet
#icp_access deny all

http_access allow password
http_access deny all

Leider find ich auch keine Tutorials die mir ne Anleitung geben könnte, weder finde ich nützliche Beiträge im Netz. Vielleicht hab ich auch etwas Grundsätzliches falsch gemacht. Hab mich bis dato noch nie mit LDAP auseinandergesetzt und dies ist auch mein erster Proxy den ich aufziehe. Ich bitte dies zu berücksichtigen ^^

Danke schon mal im Vorraus.

Yogy

Content-Key: 78332

Url: https://administrator.de/contentid/78332

Printed on: April 16, 2024 at 16:04 o'clock