{"id":503,"date":"2022-05-01T22:52:29","date_gmt":"2022-05-02T01:52:29","guid":{"rendered":"http:\/\/vbrain.com.br\/?p=503"},"modified":"2024-01-07T20:50:15","modified_gmt":"2024-01-07T23:50:15","slug":"configuring-2fa-two-factor-authentication-in-vcenter-using-duo-proxy-providing-for-example-azure-ad-as-an-identity-provider","status":"publish","type":"post","link":"http:\/\/vbrain.com.br\/index.php\/2022\/05\/01\/configuring-2fa-two-factor-authentication-in-vcenter-using-duo-proxy-providing-for-example-azure-ad-as-an-identity-provider\/","title":{"rendered":"Configuring 2FA (two-factor authentication) in vCenter using Cisco Duo (Proxy), providing for example Azure AD as an identity provider."},"content":{"rendered":"<p>First, let&#8217;s go through some basic definitions.<\/p>\n<p><strong>Active Directory (AD):<\/strong> commonly called Active Directory Domain Services (AD DS) or Active Directory (AD), it is a directory service created by Microsoft and it provides a hierarchy-based authentication service, providing functionality such as authentication, group and user management, policy administration, allowing computers to access the domain and much more.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>LDAP:<\/strong> Lightweight Directory Access Protocol (LDAP), is a protocol used to query and authenticate users and computers in directory services that support it, for example AD.<br \/>\nIn this way, LDAP and AD complement each other, LDAP works as a translator for users who want to talk to AD and authenticate themselves, LDAP does the translation between user and AD server.<\/p>\n<p>Active Directory (AD) is an example that uses the LDAP protocol,<br \/>\nbut there are several other services that can use the LDAP protocol like OpenLDAP, Apache Directory Server, and more.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>ADFS: <\/strong>Active Directory Federation Services is also a protocol like LDAP, but this was developed by Microsoft.<\/p>\n<p>Why use ADFS? Simple, in the past there was no great demand for SSO (Single Sign-ON) in cloud environments, SaaS service providers etc, but that has changed, currently there is a great demand for SSO in multi-company environments, for example, two companies with the same service provider authentication, there are also services like Azure, AWS, ,GSuites etc that can benefit from &#8220;federated&#8221; authentication. Basically, LDAP is more flexible than ADFS.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Azure AD: <\/strong>Azure AD is an identity management solution, as AD is, but instead of a hierarchically organized structure like AD, in Azure AD it is not possible to include a machine in the domain, create OU&#8217;s or GPOs, or even perform queries via LDAP.<\/p>\n<p>Azure AD is cloud based, so HTTP and HTTPS are basically the two ways that users and Azure AD communicate over the internet.<\/p>\n<p>Authentication is performed through protocols such as OAuth and SAML, queries are possible through the use of REST APIs, both authentication and queries occur using HTTP and HTTPS communication.<\/p>\n<p>As with ADFS, Azure AD works as a federated authentication mechanism for managing identities in Internet-based services such as: Microsoft Azure, Office 365, Dropbox for Business, Salesforce, Intranets published on Internet etc. But without using ADFS as a protocol.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>vSphere 7 with ADFS and alternatives<\/strong><\/p>\n<p>vSphere 7 brings the new Identity Federation function, it allows vCenter to use a external identity source for the authentication and multi-factor authentication.<\/p>\n<p>However, only ADFS is supported in Identity Federation, alternatively, we can use an application like Duo (https:\/\/duo.com) to serve as an authentication proxy, enabling other protocols and 2FA not only for vCenter 7.0 but for other versions of vCenter.<\/p>\n<p>Lets to see the diagram of our test using Duo:<\/p>\n<p id=\"WMHwTlM\"><a href=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f19aaca0ed.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-509 size-full\" src=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f19aaca0ed.png\" alt=\"\" width=\"2626\" height=\"1074\" srcset=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f19aaca0ed.png 2626w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f19aaca0ed-300x123.png 300w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f19aaca0ed-1024x419.png 1024w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f19aaca0ed-768x314.png 768w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f19aaca0ed-1536x628.png 1536w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f19aaca0ed-2048x838.png 2048w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f19aaca0ed-1920x785.png 1920w\" sizes=\"auto, (max-width: 2626px) 100vw, 2626px\" \/><\/a><\/p>\n<p><strong>As I don&#8217;t have an Azure AD account for testing at the moment I am creating this post, in this post I will use an on-premises AD as the first authentication source, and the PUSH method in the Duo app as 2FA.<\/strong><\/p>\n<p>Lets start this step-by-step<\/p>\n<p>Creating a Duo account:<\/p>\n<p>Access Duo Security web site (www.duo.com) and create a new account:<\/p>\n<p id=\"EvPdAqd\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-510 \" src=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1c4025630.png\" alt=\"\" width=\"971\" height=\"714\" srcset=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1c4025630.png 2870w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1c4025630-300x221.png 300w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1c4025630-1024x753.png 1024w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1c4025630-768x565.png 768w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1c4025630-1536x1129.png 1536w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1c4025630-2048x1506.png 2048w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1c4025630-1920x1412.png 1920w\" sizes=\"auto, (max-width: 971px) 100vw, 971px\" \/><\/p>\n<p>After login, click on <strong>Application<\/strong> and <strong>Protect an Application<\/strong><\/p>\n<p id=\"rYJFwIz\"><img loading=\"lazy\" decoding=\"async\" width=\"2858\" height=\"1052\" class=\"alignnone size-full wp-image-512 \" src=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1cf9c462e.png\" alt=\"\" srcset=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1cf9c462e.png 2858w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1cf9c462e-300x110.png 300w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1cf9c462e-1024x377.png 1024w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1cf9c462e-768x283.png 768w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1cf9c462e-1536x565.png 1536w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1cf9c462e-2048x754.png 2048w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1cf9c462e-1920x707.png 1920w\" sizes=\"auto, (max-width: 2858px) 100vw, 2858px\" \/><\/p>\n<p>Filter by VMware and choose <strong>VMware View, <\/strong>after click in <strong>Protect (yes, although only having VMware view (Horizon) as an application, in my tests I got the same results with vCenter)<\/strong><\/p>\n<p id=\"wLRJIOZ\"><img loading=\"lazy\" decoding=\"async\" width=\"2832\" height=\"1450\" class=\"alignnone size-full wp-image-514 \" src=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1d6f8c3f8.png\" alt=\"\" srcset=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1d6f8c3f8.png 2832w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1d6f8c3f8-300x154.png 300w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1d6f8c3f8-1024x524.png 1024w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1d6f8c3f8-768x393.png 768w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1d6f8c3f8-1536x786.png 1536w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1d6f8c3f8-2048x1049.png 2048w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1d6f8c3f8-1920x983.png 1920w\" sizes=\"auto, (max-width: 2832px) 100vw, 2832px\" \/><\/p>\n<p>After click on Protect, take a note of Integration Key, Secret Key and API hostname.<\/p>\n<p id=\"GMRFyam\"><img loading=\"lazy\" decoding=\"async\" width=\"2926\" height=\"1252\" class=\"alignnone size-full wp-image-515 \" src=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1f1adbf7f.png\" alt=\"\" srcset=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1f1adbf7f.png 2926w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1f1adbf7f-300x128.png 300w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1f1adbf7f-1024x438.png 1024w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1f1adbf7f-768x329.png 768w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1f1adbf7f-1536x657.png 1536w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1f1adbf7f-2048x876.png 2048w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f1f1adbf7f-1920x822.png 1920w\" sizes=\"auto, (max-width: 2926px) 100vw, 2926px\" \/><\/p>\n<p>Now it&#8217;s time to create the VM that will be used as Duo Proxy, it can be created in a windows or linux VM, in my lab I used a VM with Ubuntu Desktop.<\/p>\n<p id=\"gkLnKCv\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-516 \" src=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2045548a3.png\" alt=\"\" width=\"1176\" height=\"633\" srcset=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2045548a3.png 2878w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2045548a3-300x161.png 300w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2045548a3-1024x551.png 1024w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2045548a3-768x413.png 768w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2045548a3-1536x826.png 1536w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2045548a3-2048x1102.png 2048w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2045548a3-1920x1033.png 1920w\" sizes=\"auto, (max-width: 1176px) 100vw, 1176px\" \/><\/p>\n<p>After creating the VM that will be used as Duo Proxy, download the package <strong>.tar <\/strong>and install, the full reference could be find here (<a href=\"https:\/\/duo.com\/docs\/authproxy-reference\">Duo Authentication Proxy Reference | Duo Security<\/a>). The process is simple, basically it consists of installing the dependencies and running commands like make install.<\/p>\n<p>After installing Duo Proxy, you will need to edit the proxy authentication configuration file, the file is <strong>authproxy.cfg<\/strong> and can be found in the following directory:<\/p>\n<p><strong>\/opt\/duoauthproxy\/conf<\/strong><\/p>\n<p>The configuration file works in sessions format, in each session it is possible to configure the authentication type and how it will be used, let&#8217;s see an example:<\/p>\n<p id=\"ShJjwEH\"><a href=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f271d149b9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-521 size-full\" src=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f271d149b9.png\" alt=\"\" width=\"2324\" height=\"1310\" srcset=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f271d149b9.png 2324w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f271d149b9-300x169.png 300w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f271d149b9-1024x577.png 1024w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f271d149b9-768x433.png 768w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f271d149b9-1536x866.png 1536w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f271d149b9-2048x1154.png 2048w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f271d149b9-1920x1082.png 1920w\" sizes=\"auto, (max-width: 2324px) 100vw, 2324px\" \/><\/a><\/p>\n<p>Some parameters here are optional, as <strong>exempt_ou_1, <\/strong>that could be used to define a user or group that can login without 2FA.<\/p>\n<p>All options and a complete definition can be found at (<a href=\"https:\/\/duo.com\/docs\/authproxy-reference\">Duo Authentication Proxy Reference | Duo Security<\/a>)<\/p>\n<p><span style=\"color: #ff0000;\"><strong>IMPORTANT, whenever the configuration file is changed, restart the service with the following command: <\/strong><\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong>\/opt\/duoauthproxy\/bin\/authproxyctl restart<\/strong><\/span><\/p>\n<p>After that, lets to configure Identity Federation on vCenter:<\/p>\n<p>After access vCenter (at this point using local login administrator@vsphere.com), in the menu access <strong>Administration<\/strong>, under <strong>Single Sign On <\/strong>click on <strong>Configuration &gt; Identity Sources<\/strong> and finally <strong>ADD:<\/strong><\/p>\n<p id=\"zHsgZYP\"><img loading=\"lazy\" decoding=\"async\" width=\"4062\" height=\"1700\" class=\"alignnone size-full wp-image-522 \" src=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f287ed5990.png\" alt=\"\" srcset=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f287ed5990.png 4062w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f287ed5990-300x126.png 300w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f287ed5990-1024x429.png 1024w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f287ed5990-768x321.png 768w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f287ed5990-1536x643.png 1536w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f287ed5990-2048x857.png 2048w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f287ed5990-1920x804.png 1920w\" sizes=\"auto, (max-width: 4062px) 100vw, 4062px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Fill the information with the information of your environment, the username here has to be the same user configured as username service account.<\/p>\n<p id=\"STePdqE\"><img loading=\"lazy\" decoding=\"async\" width=\"2660\" height=\"2198\" class=\"alignnone size-full wp-image-524 \" src=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f29967e949.png\" alt=\"\" srcset=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f29967e949.png 2660w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f29967e949-300x248.png 300w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f29967e949-1024x846.png 1024w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f29967e949-768x635.png 768w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f29967e949-1536x1269.png 1536w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f29967e949-2048x1692.png 2048w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f29967e949-1920x1587.png 1920w\" sizes=\"auto, (max-width: 2660px) 100vw, 2660px\" \/><\/p>\n<p>At this point, it is already possible to authenticate in vCenter using proxy authentication, however, without 2FA, let&#8217;s now go to directory synchronization in Duo, use the mobile App, etc.<\/p>\n<p>Access https:\/\/duo.com and login again. Click on <strong>Users <\/strong>and <strong>Directory Sync.<\/strong><\/p>\n<p id=\"rBanwGf\"><img loading=\"lazy\" decoding=\"async\" width=\"3130\" height=\"864\" class=\"alignnone size-full wp-image-525 \" src=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2bd2524d3.png\" alt=\"\" srcset=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2bd2524d3.png 3130w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2bd2524d3-300x83.png 300w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2bd2524d3-1024x283.png 1024w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2bd2524d3-768x212.png 768w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2bd2524d3-1536x424.png 1536w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2bd2524d3-2048x565.png 2048w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2bd2524d3-1920x530.png 1920w\" sizes=\"auto, (max-width: 3130px) 100vw, 3130px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>You can use some user synchronization sources, such as Azure AD and AD, in my case, as I don&#8217;t have Azure AD, I will use conventional AD.<\/p>\n<p id=\"YfsmeeE\"><img loading=\"lazy\" decoding=\"async\" width=\"2862\" height=\"760\" class=\"alignnone size-full wp-image-526 \" src=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2cd319a19.png\" alt=\"\" srcset=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2cd319a19.png 2862w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2cd319a19-300x80.png 300w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2cd319a19-1024x272.png 1024w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2cd319a19-768x204.png 768w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2cd319a19-1536x408.png 1536w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2cd319a19-2048x544.png 2048w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2cd319a19-1920x510.png 1920w\" sizes=\"auto, (max-width: 2862px) 100vw, 2862px\" \/><\/p>\n<p>At this point, the sync service will show as a failed process.<\/p>\n<p id=\"DzKQTAX\"><img loading=\"lazy\" decoding=\"async\" width=\"2426\" height=\"1502\" class=\"alignnone size-full wp-image-527 \" src=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2e077a846.png\" alt=\"\" srcset=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2e077a846.png 2426w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2e077a846-300x186.png 300w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2e077a846-1024x634.png 1024w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2e077a846-768x475.png 768w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2e077a846-1536x951.png 1536w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2e077a846-2048x1268.png 2048w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2e077a846-1920x1189.png 1920w\" sizes=\"auto, (max-width: 2426px) 100vw, 2426px\" \/><\/p>\n<p>Again you should take note of the information like Integration Key, Secret Key and api-host, we will use those informations in the confi file configured before:<\/p>\n<p id=\"gwmNOJp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-528 \" src=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2ea1a2de5.png\" alt=\"\" width=\"1250\" height=\"1137\" srcset=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2ea1a2de5.png 1900w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2ea1a2de5-300x273.png 300w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2ea1a2de5-1024x931.png 1024w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2ea1a2de5-768x698.png 768w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f2ea1a2de5-1536x1397.png 1536w\" sizes=\"auto, (max-width: 1250px) 100vw, 1250px\" \/><\/p>\n<p>Return to the <strong>authproxy.cfg <\/strong>and create a new session called <strong>Cloud,<\/strong> use the same information collected before:<\/p>\n<p id=\"tZDzNfm\"><a href=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f3011b7214.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-530 size-full\" src=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f3011b7214.png\" alt=\"\" width=\"1930\" height=\"1656\" srcset=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f3011b7214.png 1930w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f3011b7214-300x257.png 300w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f3011b7214-1024x879.png 1024w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f3011b7214-768x659.png 768w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f3011b7214-1536x1318.png 1536w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f3011b7214-1920x1647.png 1920w\" sizes=\"auto, (max-width: 1930px) 100vw, 1930px\" \/><\/a><\/p>\n<p>After that, return to the <strong>Directory Sync <\/strong>on duo.com, and click <strong>Test Connection:<\/strong><\/p>\n<p id=\"khmbjCv\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-531 \" src=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f30a28f733.png\" alt=\"\" width=\"1436\" height=\"1082\" srcset=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f30a28f733.png 2128w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f30a28f733-300x226.png 300w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f30a28f733-1024x771.png 1024w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f30a28f733-768x578.png 768w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f30a28f733-1536x1156.png 1536w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f30a28f733-2048x1542.png 2048w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f30a28f733-1920x1445.png 1920w\" sizes=\"auto, (max-width: 1436px) 100vw, 1436px\" \/><\/p>\n<p>Now, fill the information about the DC and use <strong>Plain <\/strong>as <strong>Authentication Type<\/strong>, you will use the same service account to login: (of course the Duo Cloud doesn&#8217;t need to resolve the Domain Controller name, in my case dc1.laboratorio.local)<\/p>\n<p id=\"HJlvBVC\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-532 \" src=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f30feb9964.png\" alt=\"\" width=\"1210\" height=\"1327\" srcset=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f30feb9964.png 1580w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f30feb9964-274x300.png 274w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f30feb9964-934x1024.png 934w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f30feb9964-768x842.png 768w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f30feb9964-1401x1536.png 1401w\" sizes=\"auto, (max-width: 1210px) 100vw, 1210px\" \/><\/p>\n<p>Optionally it is possible to configure which groups will be synchronized.<\/p>\n<p id=\"NvEpMrg\"><img loading=\"lazy\" decoding=\"async\" width=\"1850\" height=\"428\" class=\"alignnone size-full wp-image-533 \" src=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f31ccab135.png\" alt=\"\" srcset=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f31ccab135.png 1850w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f31ccab135-300x69.png 300w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f31ccab135-1024x237.png 1024w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f31ccab135-768x178.png 768w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f31ccab135-1536x355.png 1536w\" sizes=\"auto, (max-width: 1850px) 100vw, 1850px\" \/><\/p>\n<p>Now, at the top of the page, click in <strong>Sync Now<\/strong><\/p>\n<p id=\"NeWpCvN\"><img loading=\"lazy\" decoding=\"async\" width=\"1728\" height=\"392\" class=\"alignnone size-full wp-image-534 \" src=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f3295e5a61.png\" alt=\"\" srcset=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f3295e5a61.png 1728w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f3295e5a61-300x68.png 300w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f3295e5a61-1024x232.png 1024w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f3295e5a61-768x174.png 768w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f3295e5a61-1536x348.png 1536w\" sizes=\"auto, (max-width: 1728px) 100vw, 1728px\" \/><\/p>\n<p>At this point, you should see a message like <strong>Connected<\/strong><\/p>\n<p id=\"ThXaZqU\"><a href=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f32f77992b.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-536 size-full\" src=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f32f77992b.png\" alt=\"\" width=\"2382\" height=\"1054\" srcset=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f32f77992b.png 2382w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f32f77992b-300x133.png 300w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f32f77992b-1024x453.png 1024w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f32f77992b-768x340.png 768w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f32f77992b-1536x680.png 1536w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f32f77992b-2048x906.png 2048w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f32f77992b-1920x850.png 1920w\" sizes=\"auto, (max-width: 2382px) 100vw, 2382px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Now, you should see all users synchronized.<\/p>\n<p id=\"uXAMJZn\"><img loading=\"lazy\" decoding=\"async\" width=\"2362\" height=\"1224\" class=\"alignnone size-full wp-image-537 \" src=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f33855b151.png\" alt=\"\" srcset=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f33855b151.png 2362w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f33855b151-300x155.png 300w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f33855b151-1024x531.png 1024w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f33855b151-768x398.png 768w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f33855b151-1536x796.png 1536w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f33855b151-2048x1061.png 2048w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f33855b151-1920x995.png 1920w\" sizes=\"auto, (max-width: 2362px) 100vw, 2362px\" \/><\/p>\n<p>Click on any of the users previously synchronized and <strong>Send Enrollment Email<\/strong> on the top of the page. (Obviously the information like email and phone must be filled in the identity provider, in my case AD)<\/p>\n<p id=\"qGigydz\"><img loading=\"lazy\" decoding=\"async\" width=\"1554\" height=\"372\" class=\"alignnone size-full wp-image-539 \" src=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f3481e5703.png\" alt=\"\" srcset=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f3481e5703.png 1554w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f3481e5703-300x72.png 300w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f3481e5703-1024x245.png 1024w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f3481e5703-768x184.png 768w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f3481e5703-1536x368.png 1536w\" sizes=\"auto, (max-width: 1554px) 100vw, 1554px\" \/><\/p>\n<p>The user will receive an email like the following:<\/p>\n<p id=\"HNqnMPd\"><img loading=\"lazy\" decoding=\"async\" width=\"762\" height=\"868\" class=\"alignnone size-full wp-image-540 \" src=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f36d84147c.png\" alt=\"\" srcset=\"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f36d84147c.png 762w, http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f36d84147c-263x300.png 263w\" sizes=\"auto, (max-width: 762px) 100vw, 762px\" \/><\/p>\n<p>Download the Duo app at the Play Store or App Store and scan the QR Code received.<\/p>\n<p>Now all vCenter authentication attempts will first be authenticated with AD users and then a PUSH notification will be sent to the mobile App.<\/p>\n<p><iframe loading=\"lazy\" src=\"\/\/www.youtube.com\/embed\/7wcjMfz1ZlY\" width=\"560\" height=\"314\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><strong><code><\/code><\/strong><\/p>\n<p>Follow the configuration file as a reference and to help Control-C and Control-V:<\/p>\n<p><span style=\"color: #333333;\"><code>;[main]<\/code><\/span><\/p>\n<p><span style=\"color: #333333;\"><code>; CLIENTS: Include one or more of the following configuration sections.<\/code><\/span><br \/>\n<span style=\"color: #333333;\"><code>; To configure more than one client configuration of the same type, append a<\/code><\/span><br \/>\n<span style=\"color: #333333;\"><code>; number to the section name (e.g. [ad_client2])<\/code><\/span><\/p>\n<p><span style=\"color: #333333;\"><code>[ad_client]<\/code><\/span><br \/>\n<span style=\"color: #333333;\"><code>host=dc1.laboratorio.local<\/code><\/span><br \/>\n<span style=\"color: #333333;\"><code>service_account_username=XXXXXXXXXXXXXXX<\/code><\/span><br \/>\n<span style=\"color: #333333;\"><code>service_account_password=XXXXXXXXXXXXXXXXXXX<\/code><\/span><br \/>\n<span style=\"color: #333333;\"><code>search_dn=DC=laboratorio,DC=local<\/code><\/span><br \/>\n<span style=\"color: #333333;\"><code>security_group_dn=CN=XXXXXXXXXX,CN=Users,DC=laboratorio,DC=local<\/code><\/span><br \/>\n<span style=\"color: #333333;\"><code>port=389<\/code><\/span><\/p>\n<p><span style=\"color: #333333;\"><code>#[duo_only_client]<\/code><\/span><\/p>\n<p><span style=\"color: #333333;\"><code>; SERVERS: Include one or more of the following configuration sections.<\/code><\/span><br \/>\n<span style=\"color: #333333;\"><code>; To configure more than one server configuration of the same type, append a<\/code><\/span><br \/>\n<span style=\"color: #333333;\"><code>; number to the section name (e.g. radius_server_auto1, radius_server_auto2)<\/code><\/span><\/p>\n<p><span style=\"color: #333333;\"><code>[ldap_server_auto]<\/code><\/span><br \/>\n<span style=\"color: #333333;\"><code>client=ad_client<\/code><\/span><br \/>\n<span style=\"color: #333333;\"><code>ikey=XXXXXXXXXXXXXXXXXM5F<\/code><\/span><br \/>\n<span style=\"color: #333333;\"><code>skey=XXXXXXXXXXXXXXXXXXXUdyg<\/code><\/span><br \/>\n<span style=\"color: #333333;\"><code>api_host=XXXXXXXXXXXXXXXX.duosecurity.com<\/code><\/span><br \/>\n<span style=\"color: #333333;\"><code>port=389<\/code><\/span><br \/>\n<span style=\"color: #333333;\"><code>exempt_ou_1=CN=XXXXXXXXXX,CN=Users,DC=laboratorio,DC=local<\/code><\/span><br \/>\n<span style=\"color: #333333;\"><code>#exempt_ou_2=CN=fernando,CN=Users,DC=laboratorio,DC=local<\/code><\/span><br \/>\n<span style=\"color: #333333;\"><code>exempt_primary_bind=false<\/code><\/span><br \/>\n<span style=\"color: #333333;\"><code>failmode=secure<\/code><\/span><\/p>\n<p><span style=\"color: #333333;\"><code>[cloud]<\/code><\/span><\/p>\n<p><span style=\"color: #333333;\"><code>ikey=XXXXXXXXXXXXXXXX30MCN<\/code><\/span><br \/>\n<span style=\"color: #333333;\"><code>skey=XXXXXXXXXXXXXXXXXXXXX9UQkai<\/code><\/span><br \/>\n<span style=\"color: #333333;\"><code>api_host=XXXXXXXXXXXXXX.duosecurity.com<\/code><\/span><br \/>\n<span style=\"color: #333333;\"><code>service_account_username=XXXXXXXXXXXXXX<\/code><\/span><br \/>\n<span style=\"color: #333333;\"><code>service_account_password=XXXXXXXXXXXXXXXXXX<\/code><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>First, let&#8217;s go through some basic definitions. Active Directory (AD): commonly called Active Directory Domain Services (AD DS) or Active Directory (AD), it is a directory service created by Microsoft&hellip;<\/p>\n","protected":false},"author":1,"featured_media":509,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[8],"tags":[],"class_list":["post-503","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vmware"],"jetpack_featured_media_url":"http:\/\/vbrain.com.br\/wp-content\/uploads\/2022\/05\/img_626f19aaca0ed.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/vbrain.com.br\/index.php\/wp-json\/wp\/v2\/posts\/503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/vbrain.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/vbrain.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/vbrain.com.br\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/vbrain.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=503"}],"version-history":[{"count":12,"href":"http:\/\/vbrain.com.br\/index.php\/wp-json\/wp\/v2\/posts\/503\/revisions"}],"predecessor-version":[{"id":547,"href":"http:\/\/vbrain.com.br\/index.php\/wp-json\/wp\/v2\/posts\/503\/revisions\/547"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/vbrain.com.br\/index.php\/wp-json\/wp\/v2\/media\/509"}],"wp:attachment":[{"href":"http:\/\/vbrain.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=503"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/vbrain.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=503"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/vbrain.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}