mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
fixed not working domain config user login
This commit is contained in:
parent
fa6626a5d1
commit
ba2518a60e
@ -210,6 +210,7 @@ switch($cmd)
|
||||
usage();
|
||||
}
|
||||
load_wrapper($url=$argv[0]);
|
||||
|
||||
if($argc > 1 && !egw_vfs::$is_root)
|
||||
{
|
||||
die("You need to be root to do that!\n");
|
||||
@ -224,7 +225,7 @@ switch($cmd)
|
||||
}
|
||||
elseif ($fstab === false)
|
||||
{
|
||||
echo "URL '$url' not found or permission denied (are your root?)!\n";
|
||||
echo "URL '$url' not found or permission denied (are you root?)!\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -503,8 +504,8 @@ function load_egw($user,$passwd,$domain='default')
|
||||
|
||||
if ($user == 'root_'.$GLOBALS['egw_info']['server']['header_admin_user'] &&
|
||||
_check_pw($GLOBALS['egw_info']['server']['header_admin_password'],$passwd) ||
|
||||
$user == 'root_'.$GLOBALS['egw_domain'][$_GET['domain']]['config_user'] &&
|
||||
_check_pw($GLOBALS['egw_domain'][$_GET['domain']]['config_passwd'],$passwd))
|
||||
$user == 'root_'.$GLOBALS['egw_domain'][$domain]['config_user'] &&
|
||||
_check_pw($GLOBALS['egw_domain'][$domain]['config_passwd'],$passwd))
|
||||
{
|
||||
echo "\nRoot access granted!\n";
|
||||
egw_vfs::$is_root = true;
|
||||
|
Loading…
Reference in New Issue
Block a user