Active Directory Configuration using files

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ballu711
Posts: 1
Joined: Thu Sep 27, 2018 2:55 pm

Active Directory Configuration using files

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Active Directory Configuration using files

Post 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"
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked