Dies ist eine alte Version des Dokuments!

Backuppc auf Centos mit LDAP

Verwendetes System: CentOS 7

yum install perl-LDAP.noarch perl-Apache-Session-LDAP.noarch httpd mod_perl backuppc elinks bzip2
usermod -s /bin/bash backuppc

Ändern der Config:

nano /etc/BackupPC/config.pl
# von
$Conf{CgiAdminUserGroup} = '';
 $Conf{CgiAdminUsers} = '';
# auf 
$Conf{CgiAdminUserGroup} = '';
 $Conf{CgiAdminUsers} = 'backuppc';
# von 
$Conf{PingPath} = '';
# zu
$Conf{PingPath} = '/bin/ping';

Apacheconfig für Backuppc editieren:

nano /etc/httpd/conf.d/BackupPC.conf
<Directory /usr/share/BackupPC/>
 # BackupPC requires valid authentication in order for the web interface to
 # function properly. One can view the web interface without authentication
 # though all functionality is disabled.
 # htpasswd -c /etc/BackupPC/apache.users yourusername
AuthType Basic
 AuthUserFile /etc/BackupPC/apache.users
 AuthName "BackupPC"
<IfModule mod_authz_core.c>
 # Apache 2.4
 Require valid-user
 Require local
 # --> In order to access only this specific IP
 # Require ip 192.168.16
 # --> Uncomment for access everywhere
 # Require all granted
 <IfModule !mod_authz_core.c>
 AllowOverride All
 Order allow,deny
 #Deny from all
 Allow from all
Alias /BackupPC/images /usr/share/BackupPC/html/
 ScriptAlias /BackupPC /usr/share/BackupPC/sbin/BackupPC_Admin
 ScriptAlias /backuppc /usr/share/BackupPC/sbin/BackupPC_Admin
htpasswd -c /etc/BackupPC/apache.users backuppc
systemctl restart backuppc.service
systemctl restart httpd.service