summaryrefslogtreecommitdiffstats
path: root/ldap_wizard
diff options
context:
space:
mode:
Diffstat (limited to 'ldap_wizard')
-rw-r--r--ldap_wizard/Ldap.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/ldap_wizard/Ldap.pm b/ldap_wizard/Ldap.pm
index 0a0eb762..50f039ee 100644
--- a/ldap_wizard/Ldap.pm
+++ b/ldap_wizard/Ldap.pm
@@ -53,7 +53,7 @@ my $o = {
nom => '',
prenom => '',
},
- needed_rpm => [ 'openldap-servers', 'openldap-clients', 'nss_ldap' ],
+ needed_rpm => [ 'openldap-servers' 'openldap-clients' 'nss_ldap' ],
defaultimage => "$ENV{__WIZ_HOME__}ldap_wizard/images/ldap.png",
init => sub {
test_host_domain($wiz_host_name, $wiz_domain_name);
@@ -188,6 +188,8 @@ $o->{pages} = {
],
pre => sub {
$o->{var}{rootdn} = "cn=" . N("Administrator,%s", $o->{var}{suffix});
+ my $_cryptpass = crypt($o->{var}{rootpass}, "crypt");
+ $o->{var}{rootpass} = $_cryptpass;
},
complete => sub {
if (!$o->{var}{suffix} || $o->{var}{suffix} !~ /dc/) {
@@ -393,7 +395,7 @@ rootpass=$o->{var}{rootpass}
users=$o->{var}{defou}
EOF
-
+system("chmod 700 /etc/sysconfig/ldapwiz");
}