Are you interested in our Early Access Program (EAP)? This program allows you to preview code, test in your lab and provide feedback prior to General Availability (GA) release of all Infoblox products. If so, please click the link here.

API Examples

Reply

Add domain controller to AD Authentication Service

Posts: 1
167     0

Has anyone been able to add a domain controller to an AD authentication service via WAPI?  I've spent a few hours digging around on the internet and haven't came up with anything helpful.  I can query to find a list of AD Authenticatoin Services and then get details of each particular service, but I can't seem to find out how to add a domain controller to one.

 

Get list of all AD Auth Services: 

https://<GRID_URL>/wapi/v2.12/ad_auth_service

From the returned values, I can gather the _ref ID and use it to gather details about a specific ad auth service.

 

Get properties of an AD Auth Service by ID: 

https://<GRID_URL>/wapi/v2.12/ad_auth_service/<_ref>

 

That gives me many things, including a list of domain controllers.  I was hoping to just PUT the body of { "domain_controllers": { "fqdn_or_ip": "<DOMAIN_CONTROLLER>","auth_port": 389 } } to add to the list, but it keeps returning a 400.

 

Re: Add domain controller to AD Authentication Service

Moderator
Moderator
Posts: 195
168     0

Some list fields will let you add an enty, using the "+" modifier.  I tried, with the domain controller list, but it responded with an error:

 

  "text": "Modifier + not allowed for domain_controllers"

So unfortunately you will need to pull down the whole list, add a new domain controller to the list, and then push up the whole modified list.

Showing results for 
Search instead for 
Did you mean: 

Recommended for You