Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Useful Commands
(view source)
Revision as of 06:49, 19 June 2015
344 bytes added
,
06:49, 19 June 2015
→Retrieve the ldap base
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==
Stephdl
Administrators
5,576
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version