ubuntuserver810:nss_pam_ldap
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ubuntuserver810:nss_pam_ldap [2008/12/11 13:47] – svschwartz | ubuntuserver810:nss_pam_ldap [2008/12/11 13:58] (current) – svschwartz | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| < | < | ||
| apt-get update | apt-get update | ||
| - | apt-get install | + | apt-get install libnss-ldap |
| </ | </ | ||
| Line 17: | Line 17: | ||
| Правим файл конфигурации **/ | Правим файл конфигурации **/ | ||
| - | < | + | < |
| + | # Your LDAP server. Must be resolvable without using LDAP. | ||
| + | # Multiple hosts may be specified, each separated by a | ||
| + | # space. How long nss_ldap takes to failover depends on | ||
| + | # whether your LDAP client library supports configurable | ||
| + | # network or connect timeouts (see bind_timelimit). | ||
| + | host 127.0.0.1 | ||
| + | |||
| + | # The distinguished name of the search base. | ||
| base dc=drivesource, | base dc=drivesource, | ||
| - | uri ldapi:/// | + | |
| + | # The LDAP version to use (defaults to 3 | ||
| + | # if supported by client library) | ||
| ldap_version 3 | ldap_version 3 | ||
| + | |||
| + | # Reconnect policy: hard (default) will retry connecting to | ||
| + | # the software with exponential backoff, soft will fail | ||
| + | # immediately. | ||
| bind_policy soft | bind_policy soft | ||
| - | pam_filter objectclass=posixAccount | + | |
| + | # Filter to AND with uid=%s | ||
| + | #pam_filter objectclass=account | ||
| + | pam_filter objectClass=posixAccount | ||
| + | |||
| + | # The user ID attribute (defaults to uid) | ||
| pam_login_attribute uid | pam_login_attribute uid | ||
| + | |||
| + | # Group member attribute | ||
| + | pam_member_attribute memberUid | ||
| + | |||
| + | # Do not hash the password at all; presume | ||
| + | # the directory server will do it, if | ||
| + | # necessary. This is the default. | ||
| pam_password exop | pam_password exop | ||
| + | |||
| + | # RFC2307bis naming contexts | ||
| + | # Syntax: | ||
| + | # nss_base_XXX | ||
| + | # where scope is {base, | ||
| + | # and filter is a filter to be &' | ||
| + | # default filter. | ||
| + | # You can omit the suffix eg: | ||
| + | # nss_base_passwd | ||
| + | # to append the default base DN but this | ||
| + | # may incur a small performance impact. | ||
| nss_base_passwd ou=Users, | nss_base_passwd ou=Users, | ||
| nss_base_shadow ou=Users, | nss_base_shadow ou=Users, | ||
ubuntuserver810/nss_pam_ldap.1229003261.txt.gz · Last modified: (external edit)
