33 lines
876 B
Perl
Executable File
33 lines
876 B
Perl
Executable File
#!/usr/bin/perl
|
|
# ldap_backup.cgi
|
|
# Backup LDAP Services
|
|
|
|
require './tarantella-lib.pl';
|
|
&foreign_require("proc", "proc-lib.pl");
|
|
&header($text{'index_ldapbackup'}, "", "ldapbackup");
|
|
|
|
print "<hr><p>\n";
|
|
print "<table width=100% border>\n";
|
|
print "<tr $tb> <td><b>$text{'titidx_ldapbackup'}</b></td> </tr>\n";
|
|
print "<tr $cb> <td><table width=100%>\n";
|
|
print "<hr>\n";
|
|
print "<tr><td>\n";
|
|
$str=$config{'ldap_backup'}." ".$config{'ldap_backup_dir'}." ";
|
|
$exec_str="ldap";
|
|
$cmd_str="bakup";
|
|
if (&run_cmd($str)) {
|
|
print "</pre><tr><center><b>-- oOo --</b></center></tr>\n";
|
|
} else {
|
|
print "<b>$text{'index_cmderr'}</b>\n";
|
|
}
|
|
print "<tr>\n";
|
|
print "<tr>\n";
|
|
print "<tr>\n";
|
|
print "</table></table><p>\n";
|
|
&footer($text{'back_return'},$text{'index'});
|
|
do "footer.pl";
|
|
exit;
|
|
|
|
|
|
|