LAB Linux in heterogenen Netzen Apache2 Ldap: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 2: | Zeile 2: | ||
a2enmod authnz_ldap | a2enmod authnz_ldap | ||
==ldap anbinden== | ==ldap anbinden== | ||
| + | <pre> | ||
<Directory /var/www/html> | <Directory /var/www/html> | ||
#SetHandler ldap-status | #SetHandler ldap-status | ||
| Zeile 17: | Zeile 18: | ||
Require valid-user | Require valid-user | ||
</Directory> | </Directory> | ||
| + | </pre> | ||
| + | <pre> | ||
# LDAP anbinden über eine Gruppe | # LDAP anbinden über eine Gruppe | ||
| Zeile 36: | Zeile 39: | ||
Require valid-user | Require valid-user | ||
</Directory> | </Directory> | ||
| + | <pre> | ||
| + | |||
==ldap anbinden über eine Gruppe== | ==ldap anbinden über eine Gruppe== | ||
<pre> | <pre> | ||
Version vom 10. Oktober 2024, 09:33 Uhr
verlinken der module
a2enmod authnz_ldap
ldap anbinden
<Directory /var/www/html>
#SetHandler ldap-status
AuthType Basic# Verlinken der Module
a2enmod authnz_ldap
# LDAP anbinden
<Directory /var/www/html>
AuthType Basic
AuthBasicProvider ldap
AuthName "LDAP-AUTHENTIFIKATION"
AuthLDAPURL ldap://winn2020.lab34.linuggs.de/dc=lab34,dc=linuggs,dc=de?uid?sub
AuthLDAPBindDN "cn=serviceaccount,dc=lab34,dc=linuggs,dc=de"
AuthLDAPBindPassword "dein_passwort"
Require valid-user
</Directory>
# LDAP anbinden über eine Gruppe
<Directory /var/cache/git/>
Options Indexes FollowSymLinks
AllowOverride AuthConfig
AuthName "Ldap Restricted Access"
AuthType Basic
AuthBasicProvider ldap
AuthLDAPURL ldaps://winn2020.lab34.linuggs.de/dc=lab34,dc=linuggs,dc=de
AuthLDAPBindDN "cn=serviceaccount,dc=lab34,dc=linuggs,dc=de"
AuthLDAPBindPassword "dein_passwort"
Require ldap-group cn=nuxtuxer,ou=groups,dc=lab34,dc=linuggs,dc=de
</Directory>
AuthBasicProvider ldap
AuthName LDAP-AUTHENTIFIKATION
AuthLDAPURL ldap://192.168.244.154/dc=linuggs,dc=de?uid?sub
Require valid-user
</Directory>
<pre>
==ldap anbinden über eine Gruppe==
<pre>
<Directory /var/cache/git/>
Options Indexes FollowSymLinks
AllowOverride AuthConfig
AuthName "Ldap Restricted Access"
AuthType Basic
AuthBasicProvider ldap
AuthLDAPURL ldaps://nuxhund.tuxmen.de/dc=nux,dc=adm
Require ldap-group cn=nuxtuxer,ou=groups,dc=nux,dc=adm
</Directory>