First of all. I apologizy for my very bad english
I try install OMV 4.1.3 by iso on VM.
After installing and configuration connect with AD on Windows Server 2008R2 by this manual - https://www.wishzone.net/all/o…-a-windows-2008r2-domain/
After connecting I got problem with function getUserList, that takes more then 10 minuts. And how I understand this problem is in this function:
function getUserList($params, $context) {
// Validate the RPC caller context.
$this->validateMethodContext($context, [
"role" => OMV_ROLE_ADMINISTRATOR
]);
// Validate the parameters of the RPC service method.
$this->validateMethodParams($params, "rpc.common.getlist");
// Get the list of non-system user.
$users = $this->enumerateUsersByType("normal");
// Process users and append additional information stored in
// the database.
foreach ($users as $userk => &$userv) {
// Set the defaults of the additional information.
$userv = array_merge($userv, [
"email" => "",
"disallowusermod" => FALSE,
"sshpubkeys" => []
]);
// Get additional information stored in database.
$db = \OMV\Config\Database::getInstance();
$objects = $db->getByFilter("conf.system.usermngmnt.user", [
"operator" => "stringEquals",
"arg0" => "name",
"arg1" => $userv['name']
]);
if (0 < count($objects)) {
// Get the user configuration object. Due the fact that a user
// name is unique, we can simply use the first found object.
$object = $objects[0];
// Append additional information.
$userv['email'] = $object->get("email");
$userv['disallowusermod'] = $object->get("disallowusermod");
if (FALSE === $object->isEmpty("sshpubkeys"))
$userv['sshpubkeys'] = $object->get("sshpubkeys.sshpubkey");
}
}
// Filter the result.
return $this->applyFilter($users, $params['start'],
$params['limit'], $params['sortfield'], $params['sortdir']);
}
Alles anzeigen
She geting list of all users from AD and append additional information from local-db. => Getting list Users continue very long time.
Second variant configuration that I used was by this manual - Guide to OMV 4 Active Directory Integration
But in this case I don't got list of users because sssd load one core on 100% (with param enumerate = True) or return nothing (with param enumerate = False)
In last Idea was use plugin openmediavault-ldap, but in this case i don't get list of users too.
Maybe there is someone here who configure OMV with AD 10000+ users, and can help with configuration.
Thank you