[Mageia-sysadm] [377] - add nssldap password handling

root at mageia.org root at mageia.org
Mon Nov 22 03:04:05 CET 2010


Revision: 377
Author:   misc
Date:     2010-11-22 03:04:04 +0100 (Mon, 22 Nov 2010)
Log Message:
-----------
- add nssldap password handling

Modified Paths:
--------------
    puppet/modules/pam/manifests/init.pp
    puppet/modules/pam/templates/ldap.conf

Modified: puppet/modules/pam/manifests/init.pp
===================================================================
--- puppet/modules/pam/manifests/init.pp	2010-11-22 02:04:03 UTC (rev 376)
+++ puppet/modules/pam/manifests/init.pp	2010-11-22 02:04:04 UTC (rev 377)
@@ -20,6 +20,9 @@
          mode => 644,
          content => template("pam/nsswitch.conf")
       }
+
+      $nssldap_password = extlookup("nssldap_password")
+ 
       file { "ldap.conf":
          path => "/etc/ldap.conf",
          owner => root,

Modified: puppet/modules/pam/templates/ldap.conf
===================================================================
--- puppet/modules/pam/templates/ldap.conf	2010-11-22 02:04:03 UTC (rev 376)
+++ puppet/modules/pam/templates/ldap.conf	2010-11-22 02:04:04 UTC (rev 377)
@@ -1,4 +1,5 @@
-
+binddn uid=nssldap,ou=System Accounts,<%= dc_suffix %>
+bindpw <%= nssldap_password %>
 uri ldaps://ldap.<%= domain %>
 base <%= dc_suffix %>
 pam_lookup_policy no
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101122/e27c07e8/attachment-0001.html>


More information about the Mageia-sysadm mailing list