Hi, I have installed OMV4 on a raspberrypi3, I have then installed Samba and configured it as a Unix domain member. From the CLI this is working, 'getent passwd' returns ALL users, but when I go to the OMV Web UI -> Access Rights Management -> User, I do not get any users.
I think the code for getting the users is here:
https://github.com/openmediava…ediavault/system/user.inc
/**
* Enumerate user names.
* @return An array of user names.
* @throw \OMV\ExecException
*/
public static function getUsers() {
$cmd = new \OMV\System\Process("getent", "passwd");
$cmd->setRedirect2to1();
$cmd->execute($output);
// Parse command output:
// proftpd:x:109:65534::/var/run/proftpd:/bin/false
// ftp:x:110:65534::/home/ftp:/bin/false
// openmediavault:x:999:999::/home/openmediavault:/bin/sh
// admin:x:998:100:WebGUI administrator:/home/admin:/usr/sbin/nologin
// nut:x:111:114::/var/lib/nut:/bin/false
// test:x:1001:100:sdfds:/home/test:/bin/dash
$list = [];
foreach ($output as $outputv) {
$data = explode(":", $outputv);
if (TRUE === empty($data))
continue;
$list[] = $data[0]; // User name
}
return $list;
}
}
This appears to be using 'getent passwd', so why do I get the users at the CLI, but not in th Web UI ?