zabbix-tooling / zabbix-ldap-sync

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

Media always defaulting to "Pushover" #19

Closed OlivierdcMV closed 3 years ago

OlivierdcMV commented 4 years ago

While implementing this script we noticed that the media type of the user was always defaulting to "Pushover". This happend in the get_media_typeid function. When we do the call, we can see in the description of the json output that the value is set to "Email" for media Email. When changing the filter to 'Name' in the function it seems to work.

Also, wildcard for OpenLDAP not working.

Zabbix version 4.4.6

scoopex commented 4 years ago

I am sorry @OlivierdcMV it is difficult to understand what the problem is :-) What do you mean using the term "pushover"? Probably you can provide more details (an redacted configuration, example ldap results, debug output).

If you have some python knowhow, probably you can solve the problem by yourself. New contributors are very welcome :-) You can fork the repository and submit a pull request.

OlivierdcMV commented 4 years ago

@scoopex when we set the value of Name in the config to email, it does not alter the value for email as the media of the user, but for the media type "pushover"

blodone commented 4 years ago

@OlivierdcMV i also don't understand what you mean by "setting the value of Name in the config to email". please give a example. As it is mentioned, wildcard search is only tested with active directory

scoopex commented 3 years ago

There was a bug in media selection. This is fixed now. I see no reason the wildcard searching does not work with openldap. Please reopen with a concrete example and a example data structure.