Skip to content

Instantly share code, notes, and snippets.

@znz
Last active December 16, 2015 05:08
Show Gist options
  • Save znz/5381702 to your computer and use it in GitHub Desktop.
Save znz/5381702 to your computer and use it in GitHub Desktop.
/etc/nslcd.conf の設定例
# nslcd configuration file. See nslcd.conf(5)
# for details.
# The user and group nslcd should run as.
uid nslcd
gid nslcd
# The location at which the LDAP server(s) should be reachable.
uri ldaps://ldap1.example.jp:636/
uri ldaps://ldap2.example.jp:636/
# The search base that will be used for all queries.
base dc=example,dc=jp
# The LDAP protocol version to use.
ldap_version 3
# The DN to bind with for normal lookups.
binddn cn=proxyuser,dc=example,dc=jp
bindpw secret
# The DN used for password modifications by root.
#rootpwmoddn cn=admin,dc=example,dc=com
# SSL options
#ssl off
tls_reqcert demand
tls_cacertfile /etc/ssl/certs/ca-certificates.crt
# The search scope.
#scope sub
# allow name with only 1 char and spaces (e.g. "Domain Users")
validnames /^[a-z0-9._@$]([ a-z0-9._@$\\~-]*[a-z0-9._@$~-])?$/i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment