Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

ActiveDirectory.search - Search for OU by DN

$
0
0

Hi Guys,


Having a head scratching moment using the AD plugin and the search method of the ActiveDirectory object in orchestrator.


In my environment it is highly possible that there will be Organizational Units with the same name located in different parts of the domain tree.. So to search and get an accurate object you would need to search by something unique, like the DN. However it only appears that you can search for an OU by name, which returns an array of objects.


One way to mitigate this would be to have ouName and ouDistinguishedName as inputs to the workflow.. but this seems silly.


Is there a way to search AD by DN to return a specific object or will I have to impliment logic to match the output of var adSearch = ActiveDirectory.search("OrganizationalUnit",ouName); to an input string that contains the DN?


Hope someone can shed some light


Cheers


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>