ldap_authentication
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| ldap_authentication [2014/12/12 19:49] – Add F21 info _arkan | ldap_authentication [2026/09/26 21:49] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{OODNotice}} | ||
| - | |||
| - | I found [[http:// | ||
| - | |||
| - | |||
| - | ====== Getting user information from [[ldap]] ====== | ||
| - | |||
| - | |||
| - | The < | ||
| - | Also make sure that < | ||
| - | |||
| - | To tell < | ||
| - | the < | ||
| - | give the host and base (< | ||
| - | |||
| - | To tell libc to use < | ||
| - | | ||
| - | passwd: | ||
| - | group: | ||
| - | shadow: | ||
| - | |||
| - | The other databases are best left alone; we don't bother putting host | ||
| - | information or such like in LDAP because we don't see much benefit. | ||
| - | |||
| - | The < | ||
| - | |||
| - | |||
| - | ====== Authenticating with [[ldap]] ====== | ||
| - | |||
| - | |||
| - | The < | ||
| - | | ||
| - | host piper | ||
| - | base dc=tardis, | ||
| - | rootbinddn cn=admin, | ||
| - | ldap_version 3 | ||
| - | | ||
| - | # NSS lookups need to be restricted to the appropriate parts of the tree. | ||
| - | # If other lookups are added to / | ||
| - | # here too. | ||
| - | nss_base_passwd ou=People, | ||
| - | nss_base_group | ||
| - | nss_base_shadow ou=People, | ||
| - | | ||
| - | # Use funky generic LDAP password changing. | ||
| - | pam_password exop | ||
| - | |||
| - | |||
| - | PAM needs to be told to use < | ||
| - | | ||
| - | # ** Use trick from / | ||
| - | # | ||
| - | auth [success=1 default=ignore] | ||
| - | auth required | ||
| - | auth required | ||
| - | |||
| - | Note the < | ||
| - | |||
| - | |||
| - | ====== For Red Hat-based Distros ====== | ||
| - | |||
| - | This guide was tested with Fedora Server 21 (on [[valiant]]). | ||
| - | |||
| - | * Run `authconfig-tui` (if not installed, `yum install -y authconfig` | ||
| - | * Check 'Use LDAP' and 'Use LDAP Authentication' | ||
| - | * Leave `Use TLS` unchecked. | ||
| - | * Set server to `ldap:// | ||
| - | * Set Base DN to `dc=tardis, | ||
| - | |||
| - | Easy! | ||
| - | |||
| - | |||
