-
New Feature Request
-
Resolution: Unresolved
-
Trivial
-
None
-
7.0.16
-
None
The current version of JavaScript engine has a built-in object class "HttpRequest" that allows to perform HTTP/HTTPS requests using libcurl library.
It will be great to have similar functionality for other protocols, too; for example - LDAP/LDAPS. These protocols are also supported by libcurl, for example - request of last password set time for a user in Active Directory:
zabbixtest1:/tmp # curl --user 'CN=Zabbix User,OU=Applications,DC=example,DC=com:************' -k -m 2 --url ldaps://example.com/OU=Users,DC=example,DC=com?pwdLastSet?sub?(sAMAccountName=Test) DN: CN=Test User,OU=Users,DC=example,DC=com pwdLastSet: 133933195692688509 curl: (28) Operation timed out after 2002 milliseconds with 105 bytes received zabbixtest1:/tmp #
In our use case we needed to retrieve this "133933195692688509" value for further processing.
At the moment we can solve this task using some external scripts (bash/python/etc.), but it would be great to have this functionality just in Zabbix to reduce external dependencies and simplify template sharing. Of course, it will need some methods specific for LDAP (at least, providing credentials for binding).