Signed-off-by: tracer <tracer@24unix.net>
This commit is contained in:
tracer 2022-02-21 20:24:55 +01:00
parent 016b2e2a78
commit b128122701
1 changed files with 1 additions and 0 deletions

View File

@ -115,6 +115,7 @@ class DomainController
$name = $pwuid['name']; $name = $pwuid['name'];
print("Name:\t$name" . PHP_EOL); print("Name:\t$name" . PHP_EOL);
$bindGroup = posix_getgrnam(name: 'bind'); $bindGroup = posix_getgrnam(name: 'bind');
print_r($bindGroup);
$members = $bindGroup['members']; $members = $bindGroup['members'];
if (in_array(needle: $name, haystack: $members)) { if (in_array(needle: $name, haystack: $members)) {
echo "\t✅ is in group 'bind" . PHP_EOL; echo "\t✅ is in group 'bind" . PHP_EOL;