{"id":2979,"date":"2015-06-24T08:00:09","date_gmt":"2015-06-23T22:00:09","guid":{"rendered":"https:\/\/www.penguinpunk.net\/blog\/?p=2979"},"modified":"2015-12-10T08:15:24","modified_gmt":"2015-12-09T22:15:24","slug":"emc-vnx-configuring-ldap-authentication","status":"publish","type":"post","link":"https:\/\/www.penguinpunk.net\/blog\/emc-vnx-configuring-ldap-authentication\/","title":{"rendered":"EMC &#8211; VNX &#8211; Configuring LDAP Authentication"},"content":{"rendered":"<p>I&#8217;m surprised that I haven&#8217;t done an article on configuring Active Directory (AD) authentication on the VNX. It&#8217;s pretty easy to do, and a good idea. Big thanks to Sean Thulin for documenting this in a <a href=\"http:\/\/www.thulinaround.com\/2012\/11\/05\/lesser-known-enhancements-in-the-latest-vnx-code-simplified-unisphere-ldap-integration\/\" target=\"_blank\">clear and concise fashion<\/a>, and to <a href=\"http:\/\/support.emc.com\" target=\"_blank\">EMC Support<\/a>&#8216;s website for filling in some of the blanks I had (via\u00a0Primus emc308583).<\/p>\n<p><strong>DNS<\/strong><\/p>\n<p>Firstly, you should have DNS configured on your array. This is just a basic thing that you should do. Stop making excuses.<\/p>\n<p><strong>Dsquery<\/strong><\/p>\n<p>For AD authentication, you need the following information:<\/p>\n<ul>\n<li>Domain Controller (DC)\u00a0hostname;<\/li>\n<li>A basic account on AD with read permission on AD on Users and Group containers &#8211; this account is called the Bind DN; and<\/li>\n<li>Full path information for the Bind DN, the User container, and the Group container.<\/li>\n<\/ul>\n<p>To obtain this, log in to a Windows computer with <a href=\"https:\/\/technet.microsoft.com\/en-au\/library\/cc732952.aspx\" target=\"_blank\">dsquery\u00a0<\/a>installed.\u00a0You don&#8217;t need\u00a0Domain Admin rights\u00a0to get this information.<\/p>\n<p>To determine the DC hostname, run set | findstr &#8220;LOGONSERVER&#8221; to return the hostname.<\/p>\n<p>If there isn&#8217;t a Bind DN account created, you&#8217;ll need one. This can be a normal user account with the password preferably set to &#8220;Not Expired&#8221; to avoid issues\u00a0down the track.\u00a0Once the user is created anywhere in AD, use Dsquery thusly:<\/p>\n<pre><strong>C:\\Users\\dan&gt;dsquery user -name ldap_account<\/strong><\/pre>\n<p>You&#8217;ll get this:<\/p>\n<pre><strong>\"CN=ldap_account,OU=Service Accounts,DC=domain,DC=com\"<\/strong><\/pre>\n<p>The above is fully qualified path name for the account &#8220;ldap_account,&#8221; which will be used as the\u00a0Bind DN.\u00a0You&#8217;ll need access to\u00a0the password of this service account.<\/p>\n<p>The User container is where the VNX will look for the user login be used for authentication.\u00a0In this example the user name is &#8220;Storage User&#8221;.<\/p>\n<pre><strong>C:\\Users\\dan&gt;dsquery user -name \"Storage User\"\r\n<\/strong><strong>\"CN=Storage User,OU=Storage Admins,OU=Administrators,DC=domain,DC=com\"<\/strong><\/pre>\n<p>The User Container path here that you need to note is: OU=Storage Admins,OU=Administrators,DC=domain,DC=com<\/p>\n<p>For the group, you can do the same thing. In a number of environments, this will be the same location as the Users.<\/p>\n<pre><strong>C:\\Users\\dan&gt;dsquery group -name \"Storage Admins\"\r\n<\/strong><strong>\"CN=Storage Admins,OU=Storage Admin Groups,OU=Administrators,DC=domain,DC=com\"<\/strong><\/pre>\n<p>The path name for group container is : OU=Storage Admin Groups,OU=Administrators,DC=domain,DC=com<\/p>\n<p><strong>Manage LDAP<\/strong><\/p>\n<p>Now you&#8217;re ready to set things up. Go to Domain -&gt; Manage LDAP\u00a0 and configure using the above collected information.<\/p>\n<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2015\/06\/LDAP1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2980\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2015\/06\/LDAP1.png\" alt=\"LDAP1\" width=\"600\" height=\"420\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2015\/06\/LDAP1.png 861w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2015\/06\/LDAP1-300x210.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>You can configure two service connections. These would usually be DCs that are at discrete data centres.<\/p>\n<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2015\/06\/LDAP2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2981\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2015\/06\/LDAP2.png\" alt=\"LDAP2\" width=\"600\" height=\"570\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2015\/06\/LDAP2.png 871w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2015\/06\/LDAP2-300x285.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Click on Add or Modify.<\/p>\n<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2015\/06\/LDAP3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2982\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2015\/06\/LDAP3.png\" alt=\"LDAP3\" width=\"600\" height=\"644\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2015\/06\/LDAP3.png 1001w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2015\/06\/LDAP3-279x300.png 279w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2015\/06\/LDAP3-954x1024.png 954w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Here&#8217;s what you need to fill in:<\/p>\n<ul>\n<li>Host Name or IP Address &#8211; Use the FQDN, it&#8217;s 2015 and DNS should work in your environment;<\/li>\n<li>Port 389 for LDAP, 636 for LDAPS &#8211; This will change depending on whether you select LDAP or LDAPS as the protocol;<\/li>\n<li>Server Type &#8211; Choose \u201cActive Directory\u201d;<\/li>\n<li>Domain Name &#8211; Specify the domain name;<\/li>\n<li>BindDN &#8211; This is where you put the distinguished name of the LDAP service account;<\/li>\n<li>Bind Password &#8211; The password for the LDAP service account;<\/li>\n<li>Confirm Bind Password &#8211; Confirmed;<\/li>\n<li>User Search Path &#8211; This is the info we got earlier;<\/li>\n<li>Group Search Path &#8211; Ditto; and<\/li>\n<li>Add certificate &#8211; If you&#8217;re using LDAPS, you&#8217;ll need this.<\/li>\n<\/ul>\n<p><strong>Role Mapping<\/strong><\/p>\n<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2015\/06\/LDAP4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2983\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2015\/06\/LDAP4.png\" alt=\"LDAP4\" width=\"600\" height=\"644\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2015\/06\/LDAP4.png 1001w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2015\/06\/LDAP4-279x300.png 279w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2015\/06\/LDAP4-954x1024.png 954w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Note that it is recommended to use group names with no special characters and with fewer than 32 characters. The main roles include:<\/p>\n<ul>\n<li>Operator &#8211; Read-only privilege for storage and domain operations; no privilege for security operations.<\/li>\n<li>Network Administrator &#8211; All operator privileges and privileges to configure DNS, IP settings, and SNMP.<\/li>\n<li>NAS Administrator &#8211; Full privileges for file operations. Operator privileges for block and security operations.<\/li>\n<li>SAN Administrator &#8211; Full privileges for block operations. Operator privileges for file and security operations.<\/li>\n<li>Storage Administrator &#8211; Full privileges for file and block operations. Operator privileges for security operations.<\/li>\n<li>Security Administrator &#8211; Full privileges for security operations including domains. Operator privileges for file and block operations.<\/li>\n<li>Administrator &#8211; Full privileges for file, block, and security operations. This role is the most privileged role.<\/li>\n<li>VM Administrator &#8211; Enables you to view and monitor basic storage components of your VNX system through vCenter by using VMware&#8217;s vSphere Storage APIs for Storage Awareness (VASA).<\/li>\n<\/ul>\n<p>Note that some of these roles apply to \u201cUnified\u201d configs (NAS), rather than block-only.<\/p>\n<p><strong>Conclusion<\/strong><\/p>\n<p>Don&#8217;t forget to synchronise the information once you&#8217;ve created the connections. And that&#8217;s it. you should now be able to log in to your VNX with your AD credentials. Just make sure &#8220;Use LDAP&#8221; is ticked.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m surprised that I haven&#8217;t done an article on configuring Active Directory (AD) authentication on the VNX. It&#8217;s pretty easy to do, and a good idea. Big thanks to Sean Thulin for documenting this in a clear and concise fashion, and to EMC Support&#8216;s website for filling in some of the blanks I had (via\u00a0Primus [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[60,5,408],"tags":[442,767,21,110,780,787,807],"class_list":["post-2979","post","type-post","status-publish","format-standard","hentry","category-emc-storage","category-storage","category-vnx","tag-active-directory","tag-ad","tag-emc","tag-howto","tag-ldap","tag-storage","tag-vnx"],"_links":{"self":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/2979","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/comments?post=2979"}],"version-history":[{"count":7,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/2979\/revisions"}],"predecessor-version":[{"id":3403,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/2979\/revisions\/3403"}],"wp:attachment":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/media?parent=2979"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/categories?post=2979"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/tags?post=2979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}