Ansible configure AD/LDAP integration

(Eric Baplue) #1


I’m setting up graylog with ansible and was wondering if there is a possibility to configure the AD/LDAP integration also with ansible.

It seems those setting are stored in the mongodb buu is there an API or an other way to import/export them?

Thanks in advance.

Eric Baplue

(Jan Doberstein) #2

use the API Browser to explore the options.

You will then find /api/api-browser#!/System/LDAP that gives you the options that you request.

(Eric Baplue) #3

Thanks, this is what I was looking for. I have done the GET api/system/ldap/settings and I can save my settings.
How could I do a POST api/system/ldap/test? When I use no parameter I get:
“type”: “ApiError”,
“message”: “HTTP 415 Unsupported Media Type”
When I pu {} I get:
“type”: “ApiError”,
“message”: “Can not construct instance of, problem: Null ldapUri\n at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@547f9139; line: 1, column: 2]”
And when I put the ldap_uri I get:
“type”: “ApiError”,
“message”: “”

(Jan Doberstein) #4

Without knowing how you had send what - I can’t help you with that. But the Graylog Interface will only communicate the API the same way you do via CURL

(system) #5

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.