|
|
@ -32,16 +32,19 @@ my $fws = $a->get("fws"); |
|
|
|
|
|
|
|
|
|
|
|
if (!$fws){ |
|
|
|
if (!$fws){ |
|
|
|
$a->new_record("fws", { |
|
|
|
$a->new_record("fws", { |
|
|
|
type => 'user', |
|
|
|
type => 'user', |
|
|
|
FirstName => 'Firewall', |
|
|
|
FirstName => 'Firewall', |
|
|
|
LastName => 'Services', |
|
|
|
LastName => 'Services', |
|
|
|
Phone => '0556641532', |
|
|
|
Phone => '0556641532', |
|
|
|
EmailForward => 'forward', |
|
|
|
EmailForward => 'forward', |
|
|
|
ForwardAddress => 'sme6admin@firewall-services.com', |
|
|
|
ForwardAddress => 'sme6admin@firewall-services.com', |
|
|
|
Company => 'Firewall-Services', |
|
|
|
Company => 'Firewall-Services', |
|
|
|
City => 'Martillac', |
|
|
|
City => 'Martillac', |
|
|
|
Dept => 'Administration', |
|
|
|
Dept => 'Administration', |
|
|
|
Removable => 'no' |
|
|
|
Removable => 'no', |
|
|
|
|
|
|
|
PasswordSet => 'no', |
|
|
|
|
|
|
|
AllowRSSH => 'yes', |
|
|
|
|
|
|
|
VPNClientAccess => 'yes', |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
unless ( system("/sbin/e-smith/signal-event", "user-create", "fws") == 0 ){ |
|
|
|
unless ( system("/sbin/e-smith/signal-event", "user-create", "fws") == 0 ){ |
|
|
@ -54,11 +57,14 @@ my $maillog = $a->get("maillog"); |
|
|
|
|
|
|
|
|
|
|
|
if (!$maillog){ |
|
|
|
if (!$maillog){ |
|
|
|
$a->new_record("maillog", { |
|
|
|
$a->new_record("maillog", { |
|
|
|
type => 'user', |
|
|
|
type => 'user', |
|
|
|
FirstName => 'Mail', |
|
|
|
FirstName => 'Mail', |
|
|
|
LastName => 'Log', |
|
|
|
LastName => 'Log', |
|
|
|
EmailForward => 'local', |
|
|
|
EmailForward => 'local', |
|
|
|
Removable => 'no' |
|
|
|
Removable => 'no', |
|
|
|
|
|
|
|
PasswordSet => 'no', |
|
|
|
|
|
|
|
AllowRSSH => 'no', |
|
|
|
|
|
|
|
VPNClientAccess => 'no', |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
unless ( system("/sbin/e-smith/signal-event", "user-create", "maillog") == 0 ){ |
|
|
|
unless ( system("/sbin/e-smith/signal-event", "user-create", "maillog") == 0 ){ |
|
|
@ -71,11 +77,14 @@ my $scan = $a->get("scanner"); |
|
|
|
|
|
|
|
|
|
|
|
if (!$scan){ |
|
|
|
if (!$scan){ |
|
|
|
$a->new_record("scanner", { |
|
|
|
$a->new_record("scanner", { |
|
|
|
type => 'user', |
|
|
|
type => 'user', |
|
|
|
FirstName => 'Network', |
|
|
|
FirstName => 'Network', |
|
|
|
LastName => 'Scan', |
|
|
|
LastName => 'Scan', |
|
|
|
EmailForward => 'local', |
|
|
|
EmailForward => 'local', |
|
|
|
Removable => 'no' |
|
|
|
Removable => 'no', |
|
|
|
|
|
|
|
PasswordSet => 'no', |
|
|
|
|
|
|
|
AllowRSSH => 'no', |
|
|
|
|
|
|
|
VPNClientAccess => 'no', |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
unless ( system("/sbin/e-smith/signal-event", "user-create", "scanner") == 0 ){ |
|
|
|
unless ( system("/sbin/e-smith/signal-event", "user-create", "scanner") == 0 ){ |
|
|
|