initial commit of file from CVS for smeserver-openvpn-routed on Thu 6 Mar 14:40:52 GMT 2025
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
{
|
||||
my $openvpn = $DB->get('openvpn-routed') || $DB->new_record('openvpn-routed', {type => 'service'});
|
||||
my $management = $openvpn->prop('ManagementPassword') || '';
|
||||
return "" if ($management ne '');
|
||||
|
||||
# Generate a random password
|
||||
$pass=`/usr/bin/openssl rand -base64 20 | tr -c -d '[:alnum:]'`;
|
||||
$openvpn->set_prop('ManagementPassword',"$pass");
|
||||
}
|
Reference in New Issue
Block a user