• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[GELÖST] LDAP GroupCheck

Guten Abend,

mir wurde wegen Performanceproblemen geraten über Kerberos anstatt über NTLM zu authentifizieren. Das funktioniert auch soweit. Ob es wirklich schneller ist sei mal dahin gestellt. Konnte es im Livebetrieb auch noch nicht testen.
Nun habe ich aber Schwierigkeiten den Internetzugriff so anzupassen, dass nur über eine bestimmte Gruppe (ADS) namens "Internet" Zugriff gewährt wird. Was so viel heißt wie: Meine LDAP Abfrage funktioniert nicht.
Kann mir da vielleicht jemand dazu einen Tipp geben?

Hier mal meine Konfig:
Code:
cache_mem 64 MB
cache_dir aufs /var/spool/squid 8000 256 256
cache_effective_user squid
cache_replacement_policy heap LFUDA
maximum_object_size 1000 KB
maximum_object_size_in_memory 128 KB
memory_replacement_policy heap GDSF
error_directory /usr/share/squid/errors/de-de
dns_nameservers 10.4.1.20
auth_param negotiate program /usr/lib64/squid/squid_kerb_auth
auth_param negotiate children 10
auth_param negotiate keep_alive on
external_acl_type checkgroup %LOGIN /usr/lib64/squid/squid_ldap_group -b "cn=Internet,ou=User_Gruppen,dc=test,dc=local" -f "(memberUid=%u)" -h srv-dc02.test.local
acl groupCheck external checkgroup
acl LAN src 10.4.1.0/24 10.2.1.0/24
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
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 AUTH proxy_auth REQUIRED
http_access allow LAN
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny !AUTH
http_access allow groupCheck
http_access allow localhost
http_access deny all
icp_access deny all
htcp_access deny all
hierarchy_stoplist cgi-bin ?
access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log squid
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i(/cgi-bin/|\?) 0      0%      0
refresh_pattern .               0       20%     4320
icp_port 0
http_port 3128


Vielen Dank!
 
Hat mich echt viel Zeit gekostet. Hier die Lösung.
Code:
/usr/lib64/squid/squid_ldap_group -R -K -b "dc=domain,dc=local" -D administrator -w "AdminPW" \
-f "(&(objectclass=person)(sAMAccountName=%v) \
(memberof=cn=%g,ou=UserGruppen,dc=domain,dc=local))" -h domaincontroller
 
Oben