Page 1 of 1

Active Directory Configuration using files

Posted: Thu Sep 27, 2018 3:09 pm
by ballu711
hi
As part of our Nagios Automation, we need to configuring Active Directory in Nagios. I can manually login to Nagios GUI and under Admin tab I can do it by clicking on LDAP/AD Integration. But our requirement is to Add our AD server using files on the Linux server. Does anyone has idea which files needs to be updated to do that. We have Nagiosxi 5.5.4 installed on CentOS. Please assist.
thanks
Balwant

Re: Active Directory Configuration using files

Posted: Thu Sep 27, 2018 4:19 pm
by cdienger
Integrating AD this way isn't an option. I would instead use the API to add AD users. You can find details on the API and adding users under Help > REST API Docs > System Reference. Adding an AD user for example:

curl -XPOST "https://nagios_server/nagiosxi/api/v1/system/user?apikey=api_key&pretty=1" -d 'username=user1&password=test&name=user%20one&email=[email protected]&auth_type=ad&ad_username=user1&ldap_dn=cn=user1,cn=users,dc=acme,dc=local&auth_server_id=auth_id'

auth_id is found by running:

curl -XGET "https://nagios_server/nagiosxi/api/v1/system/authserver?apikey=api_key&pretty=1"