initialize props for special accounts
This commit is contained in:
parent
21e021ac42
commit
8784f0ac59
|
@ -1,5 +1,5 @@
|
|||
%define version 0.2.0
|
||||
%define release 1.beta2
|
||||
%define release 1
|
||||
%define name ipasserelle-base
|
||||
|
||||
|
||||
|
@ -48,6 +48,7 @@ SME Server, with some additionnal modules
|
|||
* Tue Apr 03 2012 Daniel Berteaud <daniel@firewall-services.com> 0.2.0-1.sme
|
||||
- Switch to git
|
||||
- Fix PATH in cron script
|
||||
- Initialize PasswordSet, AllowRSSH and VPNClientAccess prop for special accounts
|
||||
|
||||
* Sun Mar 04 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-24.sme
|
||||
- Fix cron scripts permissions
|
||||
|
|
|
@ -32,16 +32,19 @@ my $fws = $a->get("fws");
|
|||
|
||||
if (!$fws){
|
||||
$a->new_record("fws", {
|
||||
type => 'user',
|
||||
FirstName => 'Firewall',
|
||||
LastName => 'Services',
|
||||
Phone => '0556641532',
|
||||
EmailForward => 'forward',
|
||||
ForwardAddress => 'sme6admin@firewall-services.com',
|
||||
Company => 'Firewall-Services',
|
||||
City => 'Martillac',
|
||||
Dept => 'Administration',
|
||||
Removable => 'no'
|
||||
type => 'user',
|
||||
FirstName => 'Firewall',
|
||||
LastName => 'Services',
|
||||
Phone => '0556641532',
|
||||
EmailForward => 'forward',
|
||||
ForwardAddress => 'sme6admin@firewall-services.com',
|
||||
Company => 'Firewall-Services',
|
||||
City => 'Martillac',
|
||||
Dept => 'Administration',
|
||||
Removable => 'no',
|
||||
PasswordSet => 'no',
|
||||
AllowRSSH => 'yes',
|
||||
VPNClientAccess => 'yes',
|
||||
});
|
||||
|
||||
unless ( system("/sbin/e-smith/signal-event", "user-create", "fws") == 0 ){
|
||||
|
@ -54,11 +57,14 @@ my $maillog = $a->get("maillog");
|
|||
|
||||
if (!$maillog){
|
||||
$a->new_record("maillog", {
|
||||
type => 'user',
|
||||
FirstName => 'Mail',
|
||||
LastName => 'Log',
|
||||
EmailForward => 'local',
|
||||
Removable => 'no'
|
||||
type => 'user',
|
||||
FirstName => 'Mail',
|
||||
LastName => 'Log',
|
||||
EmailForward => 'local',
|
||||
Removable => 'no',
|
||||
PasswordSet => 'no',
|
||||
AllowRSSH => 'no',
|
||||
VPNClientAccess => 'no',
|
||||
});
|
||||
|
||||
unless ( system("/sbin/e-smith/signal-event", "user-create", "maillog") == 0 ){
|
||||
|
@ -71,11 +77,14 @@ my $scan = $a->get("scanner");
|
|||
|
||||
if (!$scan){
|
||||
$a->new_record("scanner", {
|
||||
type => 'user',
|
||||
FirstName => 'Network',
|
||||
LastName => 'Scan',
|
||||
EmailForward => 'local',
|
||||
Removable => 'no'
|
||||
type => 'user',
|
||||
FirstName => 'Network',
|
||||
LastName => 'Scan',
|
||||
EmailForward => 'local',
|
||||
Removable => 'no',
|
||||
PasswordSet => 'no',
|
||||
AllowRSSH => 'no',
|
||||
VPNClientAccess => 'no',
|
||||
});
|
||||
|
||||
unless ( system("/sbin/e-smith/signal-event", "user-create", "scanner") == 0 ){
|
||||
|
|
Loading…
Reference in New Issue
Block a user