Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-10125

LDAP request from JavaScript code

XMLWordPrintable

    • Icon: New Feature Request New Feature Request
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 7.0.16
    • Proxy (P), Server (S), Tools (J)
    • 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).

            wiper Andris Zeila
            constantin.oshmyan Konstantīns Ošmjans
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: