summaryrefslogtreecommitdiffstats
path: root/ldap_wizard
diff options
context:
space:
mode:
Diffstat (limited to 'ldap_wizard')
-rw-r--r--ldap_wizard/Ldap.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/ldap_wizard/Ldap.pm b/ldap_wizard/Ldap.pm
index 295b56d4..52db1766 100644
--- a/ldap_wizard/Ldap.pm
+++ b/ldap_wizard/Ldap.pm
@@ -340,7 +340,8 @@ sub do_it_user_add {
}
sub sav_conf {
- system("slapcat -l /root/ldap-sav.ldiff");
+ my $cmd = "slapcat -l /root/ldap-sav.ldiff";
+ system($cmd) == 0 or !$::testing and err_dialog(N("Error!"), N("%s Failed", $cmd));
system("cp /etc/openldap/slapd.conf /root/");
system("rm -fr /var/lib/ldap/*")
}