Changes

Jump to navigation Jump to search
344 bytes added ,  07:49, 19 June 2015
Line 571: Line 571:  
in a template you can do
 
in a template you can do
 
   baseDN = "ou=Users,{ esmith::util::ldapBase($DomainName); }";
 
   baseDN = "ou=Users,{ esmith::util::ldapBase($DomainName); }";
 +
 +
===Retrieve the ldap password===
 +
 +
 +
* directly in bash
 +
perl -Mesmith::util -e 'print esmith::util::LdapPassword();'
 +
* in a template
 +
my $pwd = esmith::util::LdapPassword();
 +
 +
if you need to call the mysql password in a script you can invoke this bash variable
 +
* for sme8
 +
PWD=$(cat /etc/ldap.secret)
 +
* for sme9
 +
PWD=$(cat /etc/pam_ldap.secret)
    
==Log==
 
==Log==

Navigation menu