Comments (5)
I found, there is no something like 'role' in zabbix 4. There are only groups. How can I add users and groups on zabbix 4 without role?
from zabbix-ldap-sync.
Yes, this change after release 5.2.
I improved the documentation for your f1748a4
from zabbix-ldap-sync.
Hi. I removed role in user section and added type = 1.
Still problem with missing default role on Zabbbix 4.4:
[root@zabbix zabbix-ldap-sync-master]# ./zabbix-ldap-sync --wildcard-search --delete-orphans --remove-absent --skip-disabled -f zabbix-ldap.conf
2022-04-22 10:10:20 - INFO - ZabbixLDAPConf:41 - configuration for zabbix-ldap-sync release [unknown, no sourcecode checkout]
2022-04-22 10:10:20 - INFO - LDAPConn:295 - Search groups with wildcard: Support*
2022-04-22 10:10:20 - INFO - LDAPConn:295 - Search groups with wildcard: DEV*
2022-04-22 10:10:20 - INFO - LDAPConn:312 - Found group Support HW
2022-04-22 10:10:20 - INFO - pyzabbix:68 - JSON-RPC Server Endpoint: https://zabbix-int.loc.cgmpolska.pl/zabbix/api_jsonrpc.php
2022-04-22 10:10:21 - INFO - pyzabbix:75 - Zabbix API version is: 4.4.10
2022-04-22 10:10:21 - INFO - ZabbixConn:104 - Connected to Zabbix API Version 4.4.10
2022-04-22 10:10:21 - CRITICAL - ZabbixConn:607 - No default role specified
Config:
[ldap]
groups = Support*,DEV*
...
[user]
type = 1
...
Also can I set different type for certain groups when using regex? For example:
groups = Support*:3,DEV*:1
I tried it and it treats :1, :3 as part of group name.
2022-04-22 10:18:09 - INFO - LDAPConn:295 - Search groups with wildcard: Support*:3
2022-04-22 10:18:09 - INFO - LDAPConn:295 - Search groups with wildcard: DEV*:1
2022-04-22 10:18:09 - INFO - LDAPConn:316 - Unable to find group "['Support*:3', 'DEV*:1']", skipping group wildcard
from zabbix-ldap-sync.
No, you cannot define regexps. Pull requests are very welcome :-)
from zabbix-ldap-sync.
Still can't get it working with 4.4. Config like above (type = 1).
2022-05-14 21:49:55 - INFO - pyzabbix:75 - Zabbix API version is: 4.4.10
2022-05-14 21:49:55 - INFO - ZabbixConn:112 - Connected to Zabbix API Version 4.4.10
2022-05-14 21:49:55 - CRITICAL - ZabbixConn:619 - No default role specified
from zabbix-ldap-sync.
Related Issues (20)
- Not able to delete users HOT 3
- hardcoded .lower() for usernames in zabbixconn.py HOT 1
- Script adds users to random group HOT 1
- [Feature] Add role lookups HOT 1
- --deleteorphans does not work without alldirusergroup HOT 5
- Multiple media HOT 1
- Issue with Zabbix 6.0 HOT 3
- zabbix version check problem HOT 1
- zabbix version value (ValueError) HOT 1
- requests.exceptions.SSLError HOT 5
- problem with zabbix 4.0,4.4 - script tries to use role instead type HOT 2
- Exception: Ambiguous media 'Email' found, 7 different medias HOT 5
- Correct LDAP Credentials and Validated but getting error ldap.INVALID_CREDENTIALS HOT 1
- Not working with zabbix 6.0 HOT 6
- Unable to delete users from group if 'alldirusergroup' option isn't set. HOT 2
- KeyError during update of media
- Problem with Zabbix 6.4 HOT 1
- Add option to trim full DN HOT 1
- Debian packaging: new release expected soon? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zabbix-ldap-sync.