Reply

Add domain controller to AD Authentication Service

New Member
Posts: 4
3234     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: 321
3235     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