{"id":1495,"date":"2017-03-16T10:14:25","date_gmt":"2017-03-16T10:14:25","guid":{"rendered":"http:\/\/read.virtualizeplanet.com\/?p=1495"},"modified":"2017-03-16T10:15:57","modified_gmt":"2017-03-16T10:15:57","slug":"vro-active-directory-plugin-needs-ldaps","status":"publish","type":"post","link":"https:\/\/read.virtualizeplanet.com\/?p=1495","title":{"rendered":"vRO Active Directory Plugin needs LDAPS"},"content":{"rendered":"<p>Recently I rebuilt vRealize Automation in my home lab gearing up for some internal sessions on home labs. I wanted to show usual stuff like provisioning a VM and some admin orchestration like user management. What I noticed, however, is in vRealize Orchestrator that the Active Directory workflow to change a user&#8217;s Active Directory password would not work, and the error alluded to a certificate error. After doing some digging about, I found out it&#8217;s because I wasn\u2019t authenticating to Active Directory over LDAPS (Ldap over SSL) . Now in a vRealize Automation and a vRealize Orchestrator setup that would be configured in 3 places. 1) In the vRealize Orchestrator appliance to authenticate vRealize Orchestrator against Active Directory over SSL. 2) As a directory setup in vRealize Automation. 3) When registering the Active Directory plugin in vRealize Orchestrator against Active Directory. In my opinion, I followed the best instructions on the web I could find to achieve this as VMware documents are lacking proper instructions but failed with 1) and 2) .<\/p>\n<p>&nbsp;<\/p>\n<p>I tested Active Directory over SSL (LDAPS) using the Microsoft tool ldp.exe and Apache LDAP Studio without fail, so I knew from the Active Directory side all was good.<\/p>\n<p>&nbsp;<\/p>\n<p>I\u2019m sure it&#8217;s something I\u2019m doing wrong with how I\u2019m inputting the parameters on in the vRealize Orchestrator appliance and within vRealize Automation Directories but to be honest for my purposes I only needed the vRealize Orchestrator Active Directory Plugin operational, and I managed (with a little help from <a href=\"https:\/\/virtualbrakeman.wordpress.com\/\">@railroadmanuk<\/a> ) get it working\u2026 So here\u2019s what to do based on a Windows 2012 Active Directory:<\/p>\n<p>&nbsp;<\/p>\n<p>First, you need to make sure you have Active Directory certificate services working, and you do that by making sure you have added the role of Active Directory certificate services and certificate authority.<\/p>\n<p><a href=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1496\" src=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/1-300x219.jpg\" alt=\"\" width=\"300\" height=\"219\" srcset=\"https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/1-300x219.jpg 300w, https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/1-768x562.jpg 768w, https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/1.jpg 774w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Pick Enterprise CA<\/p>\n<p><a href=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1497\" src=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/2-300x150.jpg\" alt=\"\" width=\"300\" height=\"150\" srcset=\"https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/2-300x150.jpg 300w, https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/2.jpg 519w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>And Root CA<\/p>\n<p><a href=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1498\" src=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/3-300x162.jpg\" alt=\"\" width=\"300\" height=\"162\" srcset=\"https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/3-300x162.jpg 300w, https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/3.jpg 499w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Then Create a Private Key.<\/p>\n<p><a href=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1499\" src=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/4-300x190.jpg\" alt=\"\" width=\"300\" height=\"190\" srcset=\"https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/4-300x190.jpg 300w, https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/4.jpg 541w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>I changed the hash algorithm based on reading an article I found.<\/p>\n<p><a href=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1500\" src=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/5-300x153.jpg\" alt=\"\" width=\"300\" height=\"153\" srcset=\"https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/5-300x153.jpg 300w, https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/5.jpg 546w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Default the rest of the configuration by click Next.<\/p>\n<p>This will install your Active Directory certificate bits\u2026 you can check to see if this works by running LDP.EXE.. however, make sure you use localhost or FQDN in the connection string as it won&#8217;t work.<\/p>\n<p><a href=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/6.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1501\" src=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/6-300x235.jpg\" alt=\"\" width=\"300\" height=\"235\" srcset=\"https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/6-300x235.jpg 300w, https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/6.jpg 502w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Now if you open up MMC and add-in the Certificate snapin on point at Computer Account &gt; Local Computer. Open the Personal Node and Certificates you\u2019ll see your cert here.<\/p>\n<p><a href=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/7.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1502\" src=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/7-300x84.jpg\" alt=\"\" width=\"300\" height=\"84\" srcset=\"https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/7-300x84.jpg 300w, https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/7.jpg 693w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Now it&#8217;s time to export this certificate to import later in the vRealize Orchestrator appliance.<\/p>\n<p><a href=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/8.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1503\" src=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/8-300x288.jpg\" alt=\"\" width=\"300\" height=\"288\" srcset=\"https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/8-300x288.jpg 300w, https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/8.jpg 550w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Click Next<\/p>\n<p><a href=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/9-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1508\" src=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/9-1-300x290.jpg\" alt=\"\" width=\"300\" height=\"290\" srcset=\"https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/9-1-300x290.jpg 300w, https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/9-1.jpg 545w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Click Next<\/p>\n<p><a href=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/10-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1509\" src=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/10-1-300x287.jpg\" alt=\"\" width=\"300\" height=\"287\" srcset=\"https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/10-1-300x287.jpg 300w, https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/10-1.jpg 551w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Provide a filename, but please copy this certificate to somewhere that can be uploaded to the vRealize Orchestrator appliance.<\/p>\n<p>&nbsp;<\/p>\n<p>Now in your vRealize Orchestrator Control Center Click on Certificates<\/p>\n<p><a href=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/11-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1510\" src=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/11-1-300x194.jpg\" alt=\"\" width=\"300\" height=\"194\" srcset=\"https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/11-1-300x194.jpg 300w, https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/11-1.jpg 617w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Now import the certificate you exported earlier.<\/p>\n<p><a href=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/12-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1511\" src=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/12-1-300x227.jpg\" alt=\"\" width=\"300\" height=\"227\" srcset=\"https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/12-1-300x227.jpg 300w, https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/12-1.jpg 682w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Now if you open up the vRealize Orchestrator Client you can add an Active Directory server using SSL by running the following workflow<\/p>\n<p><a href=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/13.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1512\" src=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/13-300x297.jpg\" alt=\"\" width=\"300\" height=\"297\" srcset=\"https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/13-300x297.jpg 300w, https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/13-150x150.jpg 150w, https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/13-144x144.jpg 144w, https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/13.jpg 496w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Add in your parameters for you Active Directory Server making sure you specify port 636 and to use SSL.<\/p>\n<p><a href=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/14.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1513\" src=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/14-300x242.jpg\" alt=\"\" width=\"300\" height=\"242\" srcset=\"https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/14-300x242.jpg 300w, https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/14.jpg 736w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>The mistake I made for a while was not using a UPN style naming convention when inputting my user credentials.<\/p>\n<p><a href=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/15.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1514\" src=\"http:\/\/virtualizeplanet.com\/wordpress\/wp-content\/uploads\/2017\/03\/15-300x242.jpg\" alt=\"\" width=\"300\" height=\"242\" srcset=\"https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/15-300x242.jpg 300w, https:\/\/read.virtualizeplanet.com\/wp-content\/uploads\/2017\/03\/15.jpg 736w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Now after all of the above I was then able to run the Active Directory workflows that require LDAPS connection\u2026 well after all we cannot have passwords sent in clear text can we? \ud83d\ude09<\/p>\n<p>Some resources I find along the way:<\/p>\n<p><a href=\"https:\/\/goo.gl\/SLEIhl\">https:\/\/goo.gl\/SLEIhl<\/a><\/p>\n<p><a href=\"https:\/\/goo.gl\/HFdBZq\">https:\/\/goo.gl\/HFdBZq<\/a><\/p>\n<p><a href=\"https:\/\/goo.gl\/wsjMSM\">https:\/\/goo.gl\/wsjMSM<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I rebuilt vRealize Automation in my home lab gearing up for some internal sessions on home labs. I wanted to show usual stuff like provisioning a VM and some admin orchestration like user management. What I noticed, however, is in vRealize Orchestrator that the Active Directory workflow to change a user&#8217;s Active Directory password [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,4],"tags":[82,81,80],"class_list":["post-1495","post","type-post","status-publish","format-standard","hentry","category-vcloud","category-vmware","tag-vrealize-orchestrator","tag-vro-ad-plugin","tag-vro-ssl"],"aioseo_notices":[],"views":13523,"_links":{"self":[{"href":"https:\/\/read.virtualizeplanet.com\/index.php?rest_route=\/wp\/v2\/posts\/1495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/read.virtualizeplanet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/read.virtualizeplanet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/read.virtualizeplanet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/read.virtualizeplanet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1495"}],"version-history":[{"count":3,"href":"https:\/\/read.virtualizeplanet.com\/index.php?rest_route=\/wp\/v2\/posts\/1495\/revisions"}],"predecessor-version":[{"id":1517,"href":"https:\/\/read.virtualizeplanet.com\/index.php?rest_route=\/wp\/v2\/posts\/1495\/revisions\/1517"}],"wp:attachment":[{"href":"https:\/\/read.virtualizeplanet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/read.virtualizeplanet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/read.virtualizeplanet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}