zabbix-tooling / zabbix-ldap-sync

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

problem with zabbix 4.0,4.4 - script tries to use role instead type #50

Closed kkmaslowski closed 2 years ago

kkmaslowski commented 2 years ago

Current config: ... [ldap] groups = Support [user] type = 1 ...

[root@zabbix zabbix-ldap-sync]# ./zabbix-ldap-sync --skip-disabled -f zabbix-ldap.conf --dryrun
2022-05-31 11:16:00 - INFO    - ZabbixLDAPConf:41 - configuration for zabbix-ldap-sync release 0.13
2022-05-31 11:16:00 - INFO    - pyzabbix:68 - JSON-RPC Server Endpoint: https://zabbix-server/zabbix/api_jsonrpc.php
2022-05-31 11:16:00 - INFO    - pyzabbix:75 - Zabbix API version is: 4.0.37
2022-05-31 11:16:00 - INFO    - ZabbixConn:112 - Connected to Zabbix API Version 4.0.37
2022-05-31 11:16:00 - CRITICAL - ZabbixConn:619 - No default role specified

Script tries to use user role instead user type on older zabbix versions.

blodone commented 2 years ago

i tried to fix it with the latest commit pushed yet, please test again

scoopex commented 2 years ago

No feedback for a long time. Please reopen if the problem still exists.