validate username for webserver/fcgid/php-fpm in global settings to ensure it exists and is not a froxlor-managed user, fixes #1332

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2025-06-05 11:28:27 +02:00
parent 8f3228716a
commit 5beeae8fd1
5 changed files with 53 additions and 0 deletions

View File

@@ -177,6 +177,10 @@ return [
'type' => 'text',
'default' => 'froxlorlocal',
'string_emptyallowed' => false,
'plausibility_check_method' => [
'\\Froxlor\\Validate\\Check',
'checkSystemUsername'
],
'save_method' => 'storeSettingWebserverFcgidFpmUser',
'websrv_avail' => [
'apache2'
@@ -246,6 +250,10 @@ return [
'type' => 'text',
'default' => 'froxlorlocal',
'string_emptyallowed' => false,
'plausibility_check_method' => [
'\\Froxlor\\Validate\\Check',
'checkSystemUsername'
],
'save_method' => 'storeSettingWebserverFcgidFpmUser',
'visible' => Settings::Get('phpfpm.enabled') && call_user_func([
'\Froxlor\Settings\FroxlorVhostSettings',

View File

@@ -104,6 +104,10 @@ return [
'varname' => 'httpuser',
'type' => 'text',
'default' => 'www-data',
'plausibility_check_method' => [
'\\Froxlor\\Validate\\Check',
'checkSystemUsername'
],
'save_method' => 'storeSettingWebserverFcgidFpmUser'
],
'system_httpgroup' => [