GithubHelp home page GithubHelp logo

Comments (5)

kkmaslowski avatar kkmaslowski commented on August 12, 2024

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.

scoopex avatar scoopex commented on August 12, 2024

Yes, this change after release 5.2.
I improved the documentation for your f1748a4

from zabbix-ldap-sync.

kkmaslowski avatar kkmaslowski commented on August 12, 2024

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.

scoopex avatar scoopex commented on August 12, 2024

No, you cannot define regexps. Pull requests are very welcome :-)

from zabbix-ldap-sync.

kkmaslowski avatar kkmaslowski commented on August 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.