zabbix-tooling / zabbix-ldap-sync

Sync Zabbix with LDAP directory server
BSD 3-Clause "New" or "Revised" License
50 stars 36 forks source link

Not compatble with zabbix 5.2 user object dont have type #27

Closed KivraChristoffer closed 3 years ago

KivraChristoffer commented 3 years ago

in zabbix 5.2 the user obj have changed and type have been removed.

KivraChristoffer commented 3 years ago
    if self.conn.api_version() >= "5.2":
        user_defaults['roleid'] = 1
    else:
        user_defaults['type'] = 1

this seems not to be working as it should

KivraChristoffer commented 3 years ago

Found that i missed comment out a line in config.

scoopex commented 3 years ago

Thanks for the issue, i improved the documentation. https://github.com/zabbix-tooling/zabbix-ldap-sync/commit/8de50bd23de7e63821c0484c86abe669e522e442