Closed 0xNath closed 2 years ago
This is the code fom AuthLDAP.php
approximately line 315:
if (isset($input["ldap_import_entities"][$id])) {
$entity = $input["ldap_import_entities"][$id];
} else {
$entity = $_SESSION["glpiactive_entity"];
}
In my case we seems to always fall back into the else
statement and use the session entity ID.
Hello, Could you test the fix proposed in #12068?
It's working like a charm ! Thank you ! 👍🏻
Code of Conduct
Is there an existing issue for this?
Version
10.0.2
Bug description
I have 4 levels of entities. let say that I set my user to the top entitie and I want to import a group to an under entitie :
When I change the entities of destination of the groups and do the import, they go to the entity that my user has currently :
Relevant log output
No response
Page URL
https://localhost/front/ldap.group.import.php?next=servers?mode=0&action=show
Steps To reproduce
Your GLPI setup information
Informations sur le système, l'installation et la configuration
Server
GLPI constants
Libraries
LDAP directories
SQL replicas
Notifications
Plugins list
Anything else?
A temporary solution is to import the groups by changing the entity of the user