User Tools

Site Tools


ubuntuserver810:nss_pam_ldap

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntuserver810:nss_pam_ldap [2008/12/11 13:47] svschwartzubuntuserver810:nss_pam_ldap [2008/12/11 13:58] (current) svschwartz
Line 2: Line 2:
 <code> <code>
 apt-get update apt-get update
-apt-get install auth-client-config ldap-auth-client ldap-auth-config libnss-ldap libpam-ldap+apt-get install libnss-ldap
 </code> </code>
  
Line 17: Line 17:
  
 Правим файл конфигурации **/etc/ldap.conf** Правим файл конфигурации **/etc/ldap.conf**
-<code>+<code apache> 
 +# 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,dc=ru base dc=drivesource,dc=ru
-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          base?scope?filter
 +# where scope is {base,one,sub}
 +# and filter is a filter to be &'d with the
 +# default filter.
 +# You can omit the suffix eg:
 +# nss_base_passwd       ou=People,
 +# to append the default base DN but this
 +# may incur a small performance impact.
 nss_base_passwd ou=Users,dc=drivesource,dc=ru?one nss_base_passwd ou=Users,dc=drivesource,dc=ru?one
 nss_base_shadow ou=Users,dc=drivesource,dc=ru?one nss_base_shadow ou=Users,dc=drivesource,dc=ru?one
ubuntuserver810/nss_pam_ldap.1229003261.txt.gz · Last modified: (external edit)