diff options
author | Vicent Guardiola <vguardiola@mandriva.com> | 2005-03-17 16:27:10 +0000 |
---|---|---|
committer | Vicent Guardiola <vguardiola@mandriva.com> | 2005-03-17 16:27:10 +0000 |
commit | 2f11a6ba88fcf68718e8de30691617dcd7ce25f9 (patch) | |
tree | 662621ab8a2ae86e2be8f1b5ae58ca25dbb9cdcf /ldap_wizard | |
parent | 16128ae293752049deb0a295a59831770a6adf48 (diff) | |
download | drakwizard-2f11a6ba88fcf68718e8de30691617dcd7ce25f9.tar drakwizard-2f11a6ba88fcf68718e8de30691617dcd7ce25f9.tar.gz drakwizard-2f11a6ba88fcf68718e8de30691617dcd7ce25f9.tar.bz2 drakwizard-2f11a6ba88fcf68718e8de30691617dcd7ce25f9.tar.xz drakwizard-2f11a6ba88fcf68718e8de30691617dcd7ce25f9.zip |
Apply chmo 700 to /etc/sysconfig/ldapwiz, password is clear text
Diffstat (limited to 'ldap_wizard')
-rw-r--r-- | ldap_wizard/Ldap.pm | 6 |
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"); } |