Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
| Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
|
fortgeschrittene:sssd-ldap [2017/07/28 17:03] ingo_wichmann [Konfiguration] |
fortgeschrittene:sssd-ldap [2025/11/21 15:59] (aktuell) ingo_wichmann |
||
|---|---|---|---|
| Zeile 3: | Zeile 3: | ||
| * DNS [[dns|client-]] und [[bind|serverseitig]] korrekt | * DNS [[dns|client-]] und [[bind|serverseitig]] korrekt | ||
| * (open)[[ldap]] inkl. [[ldap-ssl|TLS]] | * (open)[[ldap]] inkl. [[ldap-ssl|TLS]] | ||
| - | * Benutzer in LDAP [[nss-ldap|angelegt]] (nicht nss_ldap!) | + | * [[ldap-user|OpenLDAP als Benutzerdatenbank für Linux]] |
| - | * falls Gruppen in Gruppen verschachtelt (nested groups) werden sollen: [[ldap#schemata_hinzufuegen|RFC2307bis Schema hinzufügen]] | + | * falls Gruppen in Gruppen verschachtelt (nested groups) werden sollen: [[ldap#schemata_hinzufuegen|RFC2307bis Schema hinzufügen]] |
| ===== Pakete ===== | ===== Pakete ===== | ||
| - | * Debian ab 8: ''sssd-ldap sssd-tools'' (( | + | * Debian (ab 8): ''sssd-ldap sssd-tools libnss-sss libpam-sss'' (( |
| - | apt-get --no-install-recommends install sssd-ldap sssd-tools | + | apt-get --no-install-recommends install sssd-ldap libnss-sss sssd-tools |
| )) | )) | ||
| + | * CentOS (7): ''sssd-ldap sssd-tools'' | ||
| + | * openSuSE (12.3): ''sssd sssd-tools'' | ||
| + | * ''nscd'' entfernen | ||
| ===== Konfiguration ====== | ===== Konfiguration ====== | ||
| + | Debian (ab 9): | ||
| + | cp /usr/share/doc/sssd-common/examples/sssd-example.conf /etc/sssd/sssd.conf | ||
| <file txt /etc/sssd/sssd.conf> | <file txt /etc/sssd/sssd.conf> | ||
| [sssd] | [sssd] | ||
| - | config_file_version = 2 | ||
| services = nss, pam | services = nss, pam | ||
| domains = LDAP | domains = LDAP | ||
| Zeile 45: | Zeile 49: | ||
| sssctl config-check | sssctl config-check | ||
| - | Fehlersuche: | + | service sssd restart |
| + | sssctl domain-list | ||
| + | -> ''LDAP'' | ||
| + | sssctl domain-status LDAP -a | ||
| + | -> ''LDAP: vm1.z45.internal'' | ||
| + | sssctl user-checks nutzer45 | ||
| + | -> ''pam_acct_mgmt: Success'' | ||
| + | |||
| + | ===== nss ====== | ||
| + | grep -E '^(passwd|group|shadow)' /etc/nsswitch.conf | ||
| + | -> ''files sss'' | ||
| + | getent passwd {10000..10100} | ||
| + | -> LDAP-Benutzer werden angezeigt | ||
| + | |||
| + | ===== PAM ===== | ||
| + | Debian (ab 8): | ||
| + | pam-auth-update | ||
| + | CentOS (7): | ||
| + | authconfig --enablesssd --update | ||
| + | authconfig --enablesssdauth --update | ||
| + | authconfig --enablemkhomedir --update | ||
| + | |||
| + | ===== Fehlersuche ===== | ||
| service sssd stop | service sssd stop | ||
| sssd -i -d 3 | sssd -i -d 3 | ||
| - | Doku: | + | ===== Doku ===== |
| * /usr/share/doc/sssd-common/examples/sssd-example.conf | * /usr/share/doc/sssd-common/examples/sssd-example.conf | ||
| * man sssd-ldap | * man sssd-ldap | ||
| + | |||