diff options
author | Michael Scherer <misc@mageia.org> | 2012-02-15 09:54:37 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-02-15 09:54:37 +0000 |
commit | 3789e852ceef2cdea51e086771a9f89dcddbae4b (patch) | |
tree | 862dcbd738e1d32e1738e458e9aefb88b9ff19af | |
parent | 48e3da7d291834756773301ebe65e1b0830910fc (diff) | |
download | puppet-3789e852ceef2cdea51e086771a9f89dcddbae4b.tar puppet-3789e852ceef2cdea51e086771a9f89dcddbae4b.tar.gz puppet-3789e852ceef2cdea51e086771a9f89dcddbae4b.tar.bz2 puppet-3789e852ceef2cdea51e086771a9f89dcddbae4b.tar.xz puppet-3789e852ceef2cdea51e086771a9f89dcddbae4b.zip |
manage /etc/openldap/ldap.conf by puppet
-rw-r--r-- | modules/pam/manifests/init.pp | 1 | ||||
-rw-r--r-- | modules/pam/templates/openldap.ldap.conf | 26 |
2 files changed, 27 insertions, 0 deletions
diff --git a/modules/pam/manifests/init.pp b/modules/pam/manifests/init.pp index 21059b72..8d25d056 100644 --- a/modules/pam/manifests/init.pp +++ b/modules/pam/manifests/init.pp @@ -10,6 +10,7 @@ class pam { "/etc/pam.d/system-auth": content => template("pam/system-auth"); "/etc/nsswitch.conf": content => template("pam/nsswitch.conf"); "/etc/ldap.conf": content => template("pam/ldap.conf"); + "/etc/openldap/ldap.conf": content => template("pam/openldap.ldap.conf"); } $ldap_password = extlookup("${fqdn}_ldap_password",'x') diff --git a/modules/pam/templates/openldap.ldap.conf b/modules/pam/templates/openldap.ldap.conf new file mode 100644 index 00000000..812538be --- /dev/null +++ b/modules/pam/templates/openldap.ldap.conf @@ -0,0 +1,26 @@ +#BASE dc=example, dc=com +#HOST ldap.example.com ldap-master.example.com +#URI ldap://ldap.example.com ldap://ldap-master.example.com:666 + +#SIZELIMIT 12 +#TIMELIMIT 15 +#DEREF never + +# SSL/TSL configuration. With CA-signed certs, TLS_REQCERT should be +# "demand", with the CA certificate accessible +#TLS_REQCERT ([demand],never,allow,try) +# We ship with allow by default as some LDAP clients (e.g. evolution) have +# no interactive SSL configuration + +TLS_REQCERT allow + +# CA Certificate locations +# Use the default self-signed cert generated by openldap-server postinstall +# by default +#TLS_CACERT /etc/pki/tls/certs/ldap.pem +#TLS_CACERT /etc/ssl/openldap/ldap.mageia.org.pem + +# If requiring support for certificates signed by all CAs (noting risks +# pam_ldap if doing DNS-based suffix lookup etc. +#TLS_CACERTDIR /etc/pki/tls/rootcerts + |