forked from dnaeon/zabbix-ldap-sync
-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
When a user is removed from an LDAP group but orphans are not deleted, the subsequent media update tries to access a user that does not exist:
zabbix-ldap-sync/lib/zabbixconn.py
Line 588 in 02412a9
| if self.ldap_conn.get_user_media(ldap_users[each_user], self.ldap_media): |
Here, each_user is an element of zabbix_group_users which might contain users who are not present in the LDAP group anymore but have not been deleted before (in
zabbix-ldap-sync/lib/zabbixconn.py
Line 536 in 02412a9
| absent_users = set(zabbix_group_users) - set(list(ldap_users.keys())) |
Metadata
Metadata
Assignees
Labels
No labels