Hi,
All works well when creating new users, but fails to list orphan users from Zabbix:
(venv) user@localhost:~/zabbix-ldap-sync$ ./zabbix-ldap-sync -f zabbix-ldap.conf
2018-06-13 15:45:19,154 - INFO - JSON-RPC Server Endpoint: http://1.1.1.1/zabbix/api_jsonrpc.php
2018-06-13 15:45:19,154 - INFO - JSON-RPC Server Endpoint: http://1.1.1.1/zabbix/api_jsonrpc.php
2018-06-13 15:45:19,154 - INFO - JSON-RPC Server Endpoint: http://1.1.1.1/zabbix/api_jsonrpc.php
2018-06-13 15:45:19,231 - INFO - Connected to Zabbix API Version 3.2.5
2018-06-13 15:45:19,231 - INFO - Connected to Zabbix API Version 3.2.5
2018-06-13 15:45:19,309 - INFO - Users in group Group1 which are not found in LDAP group:
2018-06-13 15:45:19,309 - INFO - Users in group Group1 which are not found in LDAP group:
Traceback (most recent call last):
File "./zabbix-ldap-sync", line 90, in <module>
main()
File "./zabbix-ldap-sync", line 87, in main
zabbix_conn.sync_users()
File "/home/user/zabbix-ldap-sync/lib/zabbixconn.py", line 384, in sync_users
if self.deleteorphans:
AttributeError: 'ZabbixConn' object has no attribute 'deleteorphans'
Any ideas what is missing here?
p.s. also not sure why I get duplicate INFO lines
Many thanks
k
All works well when creating new users, but fails to list orphan users from Zabbix:
(venv) user@localhost:~/zabbix-ldap-sync$ ./zabbix-ldap-sync -f zabbix-ldap.conf
2018-06-13 15:45:19,154 - INFO - JSON-RPC Server Endpoint: http://1.1.1.1/zabbix/api_jsonrpc.php
2018-06-13 15:45:19,154 - INFO - JSON-RPC Server Endpoint: http://1.1.1.1/zabbix/api_jsonrpc.php
2018-06-13 15:45:19,154 - INFO - JSON-RPC Server Endpoint: http://1.1.1.1/zabbix/api_jsonrpc.php
2018-06-13 15:45:19,231 - INFO - Connected to Zabbix API Version 3.2.5
2018-06-13 15:45:19,231 - INFO - Connected to Zabbix API Version 3.2.5
2018-06-13 15:45:19,309 - INFO - Users in group Group1 which are not found in LDAP group:
2018-06-13 15:45:19,309 - INFO - Users in group Group1 which are not found in LDAP group:
Traceback (most recent call last):
File "./zabbix-ldap-sync", line 90, in <module>
main()
File "./zabbix-ldap-sync", line 87, in main
zabbix_conn.sync_users()
File "/home/user/zabbix-ldap-sync/lib/zabbixconn.py", line 384, in sync_users
if self.deleteorphans:
AttributeError: 'ZabbixConn' object has no attribute 'deleteorphans'
Any ideas what is missing here?
p.s. also not sure why I get duplicate INFO lines
Many thanks
k