You are not logged in.
Hello,
I've set up LDAP sync for users and groups, it works perfectly but users are not automatically associated with groups. I know many people had this issue but I can't fix it like they did.
AD server : Windows Server 2019 up to date
GLPI server 10.0.2 (new installation)
LDAP connection settings, i've deleted "userAccountControl" part in connection filter for testing purposes but I see no differences so I did not put it back yet.
Group section settings, deleted "userAccountControl" in filter,
I noticed that ldap users does not have memberof attribute, even if they are part of groups other than bult-in Domain Users.
I did import group first then users, used "Force sync" but I just can't make the association. I'm lost.
Offline
I tried using cli tools : php /var/www/glpi/bin/console glpi:ldap:synchronize_users gives me warnings
I've put back the connection filter :
When I run the command again, it's the same.
Offline
I tried with -f option, same behavior.
Last edited by Ekatonchir (2022-09-02 16:58:05)
Offline
Ok I found the problem.
By using the CLI tool I did some testing and found out that my filter in "Group" tab was wrong, I don't have to put "UserAccountControl" which doesn't make sense for Groups objects as long as they don't have this attribute.
So my filter is just : (objectClass=group)
User filter is the default one, except that I add a exclusion for "description" field : (&(objectClass=user)(objectCategory=person)(!(description=machine))(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
I imported my groups first then my users, now my users are associated correctly.
Adding or deleting group membership to a existing user also works perfectly.
GLPI's documentation is not really well documented about LDAP connection.
Offline