initial commit of file from CVS for e-smith-base on Thu 26 Oct 11:24:52 BST 2023
This commit is contained in:
1
root/etc/e-smith/db/accounts/defaults/Primary/CgiBin
Normal file
1
root/etc/e-smith/db/accounts/defaults/Primary/CgiBin
Normal file
@@ -0,0 +1 @@
|
||||
enabled
|
1
root/etc/e-smith/db/accounts/defaults/Primary/Group
Normal file
1
root/etc/e-smith/db/accounts/defaults/Primary/Group
Normal file
@@ -0,0 +1 @@
|
||||
shared
|
1
root/etc/e-smith/db/accounts/defaults/Primary/Modifiable
Normal file
1
root/etc/e-smith/db/accounts/defaults/Primary/Modifiable
Normal file
@@ -0,0 +1 @@
|
||||
no
|
1
root/etc/e-smith/db/accounts/defaults/Primary/Name
Normal file
1
root/etc/e-smith/db/accounts/defaults/Primary/Name
Normal file
@@ -0,0 +1 @@
|
||||
Primary i-bay
|
@@ -0,0 +1 @@
|
||||
no
|
@@ -0,0 +1 @@
|
||||
no
|
@@ -0,0 +1 @@
|
||||
global
|
1
root/etc/e-smith/db/accounts/defaults/Primary/Removable
Normal file
1
root/etc/e-smith/db/accounts/defaults/Primary/Removable
Normal file
@@ -0,0 +1 @@
|
||||
no
|
1
root/etc/e-smith/db/accounts/defaults/Primary/UserAccess
Normal file
1
root/etc/e-smith/db/accounts/defaults/Primary/UserAccess
Normal file
@@ -0,0 +1 @@
|
||||
wr-admin-rd-group
|
1
root/etc/e-smith/db/accounts/defaults/Primary/type
Normal file
1
root/etc/e-smith/db/accounts/defaults/Primary/type
Normal file
@@ -0,0 +1 @@
|
||||
ibay
|
1
root/etc/e-smith/db/accounts/defaults/admin/FirstName
Normal file
1
root/etc/e-smith/db/accounts/defaults/admin/FirstName
Normal file
@@ -0,0 +1 @@
|
||||
Local
|
1
root/etc/e-smith/db/accounts/defaults/admin/LastName
Normal file
1
root/etc/e-smith/db/accounts/defaults/admin/LastName
Normal file
@@ -0,0 +1 @@
|
||||
Administrator
|
1
root/etc/e-smith/db/accounts/defaults/admin/Lockable
Normal file
1
root/etc/e-smith/db/accounts/defaults/admin/Lockable
Normal file
@@ -0,0 +1 @@
|
||||
no
|
1
root/etc/e-smith/db/accounts/defaults/admin/Removable
Normal file
1
root/etc/e-smith/db/accounts/defaults/admin/Removable
Normal file
@@ -0,0 +1 @@
|
||||
no
|
1
root/etc/e-smith/db/accounts/defaults/admin/Shell
Normal file
1
root/etc/e-smith/db/accounts/defaults/admin/Shell
Normal file
@@ -0,0 +1 @@
|
||||
/sbin/e-smith/console
|
@@ -0,0 +1 @@
|
||||
no
|
1
root/etc/e-smith/db/accounts/defaults/admin/type
Normal file
1
root/etc/e-smith/db/accounts/defaults/admin/type
Normal file
@@ -0,0 +1 @@
|
||||
system
|
@@ -0,0 +1 @@
|
||||
admin
|
@@ -0,0 +1 @@
|
||||
no
|
@@ -0,0 +1 @@
|
||||
internal
|
@@ -0,0 +1 @@
|
||||
pseudonym
|
1
root/etc/e-smith/db/accounts/defaults/cgi-bin/type
Normal file
1
root/etc/e-smith/db/accounts/defaults/cgi-bin/type
Normal file
@@ -0,0 +1 @@
|
||||
url
|
@@ -0,0 +1 @@
|
||||
url
|
@@ -0,0 +1 @@
|
||||
url
|
1
root/etc/e-smith/db/accounts/defaults/files/type
Normal file
1
root/etc/e-smith/db/accounts/defaults/files/type
Normal file
@@ -0,0 +1 @@
|
||||
url
|
1
root/etc/e-smith/db/accounts/defaults/icons/type
Normal file
1
root/etc/e-smith/db/accounts/defaults/icons/type
Normal file
@@ -0,0 +1 @@
|
||||
url
|
1
root/etc/e-smith/db/accounts/defaults/primary/type
Normal file
1
root/etc/e-smith/db/accounts/defaults/primary/type
Normal file
@@ -0,0 +1 @@
|
||||
system
|
1
root/etc/e-smith/db/accounts/defaults/root/Gid
Normal file
1
root/etc/e-smith/db/accounts/defaults/root/Gid
Normal file
@@ -0,0 +1 @@
|
||||
0
|
1
root/etc/e-smith/db/accounts/defaults/root/Uid
Normal file
1
root/etc/e-smith/db/accounts/defaults/root/Uid
Normal file
@@ -0,0 +1 @@
|
||||
0
|
1
root/etc/e-smith/db/accounts/defaults/root/type
Normal file
1
root/etc/e-smith/db/accounts/defaults/root/type
Normal file
@@ -0,0 +1 @@
|
||||
system
|
1
root/etc/e-smith/db/accounts/defaults/server-common/type
Normal file
1
root/etc/e-smith/db/accounts/defaults/server-common/type
Normal file
@@ -0,0 +1 @@
|
||||
url
|
@@ -0,0 +1 @@
|
||||
url
|
1
root/etc/e-smith/db/accounts/defaults/server-manual/type
Normal file
1
root/etc/e-smith/db/accounts/defaults/server-manual/type
Normal file
@@ -0,0 +1 @@
|
||||
url
|
@@ -0,0 +1 @@
|
||||
url
|
1
root/etc/e-smith/db/accounts/defaults/shared/Visible
Normal file
1
root/etc/e-smith/db/accounts/defaults/shared/Visible
Normal file
@@ -0,0 +1 @@
|
||||
internal
|
1
root/etc/e-smith/db/accounts/defaults/shared/type
Normal file
1
root/etc/e-smith/db/accounts/defaults/shared/type
Normal file
@@ -0,0 +1 @@
|
||||
system
|
1
root/etc/e-smith/db/accounts/defaults/user-password/type
Normal file
1
root/etc/e-smith/db/accounts/defaults/user-password/type
Normal file
@@ -0,0 +1 @@
|
||||
url
|
1
root/etc/e-smith/db/accounts/defaults/webmail/Comment
Normal file
1
root/etc/e-smith/db/accounts/defaults/webmail/Comment
Normal file
@@ -0,0 +1 @@
|
||||
placeholder for webmail URL
|
1
root/etc/e-smith/db/accounts/defaults/webmail/type
Normal file
1
root/etc/e-smith/db/accounts/defaults/webmail/type
Normal file
@@ -0,0 +1 @@
|
||||
url
|
0
root/etc/e-smith/db/accounts/force/.gitignore
vendored
Normal file
0
root/etc/e-smith/db/accounts/force/.gitignore
vendored
Normal file
4
root/etc/e-smith/db/accounts/migrate/00openRW
Normal file
4
root/etc/e-smith/db/accounts/migrate/00openRW
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
use esmith::AccountsDB;
|
||||
$DB = esmith::AccountsDB->open;
|
||||
}
|
10
root/etc/e-smith/db/accounts/migrate/10Primary
Normal file
10
root/etc/e-smith/db/accounts/migrate/10Primary
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
# Delete any pre-existing Primary=system record
|
||||
my $p = $DB->get('Primary');
|
||||
return unless defined $p;
|
||||
|
||||
my $type = $p->prop('type');
|
||||
return unless defined $type;
|
||||
|
||||
$p->delete if $type eq 'system';
|
||||
}
|
11
root/etc/e-smith/db/accounts/migrate/20AdminPasswordSet
Normal file
11
root/etc/e-smith/db/accounts/migrate/20AdminPasswordSet
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
use esmith::ConfigDB;
|
||||
|
||||
my $conf = esmith::ConfigDB->open_ro() or return;
|
||||
|
||||
my $pw_set = $conf->get_value("PasswordSet") || "no";
|
||||
|
||||
my $admin = $DB->get('admin') || return;
|
||||
|
||||
$admin->set_prop('PasswordSet', $pw_set);
|
||||
}
|
6
root/etc/e-smith/db/accounts/migrate/30EmailForward
Normal file
6
root/etc/e-smith/db/accounts/migrate/30EmailForward
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
foreach my $user ($DB->get_all_by_prop(EmailForward => 'procmail'))
|
||||
{
|
||||
$user->set_prop('EmailForward','local');
|
||||
}
|
||||
}
|
18
root/etc/e-smith/db/accounts/migrate/50VPNClientAccess
Normal file
18
root/etc/e-smith/db/accounts/migrate/50VPNClientAccess
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
# Migrate PPTPAccess -> VPNClientAccess and ensure a default for
|
||||
# all user/admin accounts
|
||||
|
||||
foreach my $account ($DB->get_all)
|
||||
{
|
||||
next unless ( ($account->key eq 'admin') or
|
||||
($account->prop('type') eq 'user') );
|
||||
|
||||
next if (defined $account->prop('VPNClientAccess'));
|
||||
|
||||
my $access = $account->prop('PPTPAccess') || 'no';
|
||||
|
||||
$account->delete_prop('PPTPAccess');
|
||||
|
||||
$account->set_prop('VPNClientAccess', $access);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user