<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SAS Studio Basic 3.71 and LDAP Authentication using in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Basic-3-71-and-LDAP-Authentication-using/m-p/532557#M15553</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/228073"&gt;@darwinwalters&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Request failed: 'Did not get encrypted password for user.'&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I would like to know what did you set in these options:&lt;/P&gt;
&lt;UL style="list-style-position: inside;"&gt;
&lt;LI&gt;LDAP_SCHEMA&lt;/LI&gt;
&lt;LI&gt;LDAP_PASSWD_ATTRIBUTE&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;SASAUTH here tried to retrieve a password from LDAP_PASSWD_ATTRIBUTE and failed because nothing has been returned from an LDAP server.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;20190111-15:23:04 LDAP: Searching for user DN using query '(sAMAccountName=&amp;lt;USERNAME&amp;gt;)'&lt;BR /&gt;20190111-15:23:04 DN query failed in domain '&amp;lt;LDAP_DOMAIN&amp;gt;'&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm wondering to see what will be returned from this command:&lt;/P&gt;
&lt;P&gt;ldapsearch -b "" -D "sAMAccountName=&amp;lt;USERNAME&amp;gt;" -h &amp;lt;SERVER_NAME&amp;gt; -W -x&lt;/P&gt;</description>
    <pubDate>Mon, 04 Feb 2019 13:08:34 GMT</pubDate>
    <dc:creator>alexal</dc:creator>
    <dc:date>2019-02-04T13:08:34Z</dc:date>
    <item>
      <title>SAS Studio Basic 3.71 and LDAP Authentication using</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Basic-3-71-and-LDAP-Authentication-using/m-p/526393#M15389</link>
      <description>&lt;P&gt;We're currently using the following guide to configure LDAP authentication against Active Directory for SAS Studio Basic running on one EC2 instance : &lt;A href="http://support.sas.com/documentation/installcenter/en/ikfdtnunxcg/66380/PDF/default/config.pdf" target="_blank"&gt;http://support.sas.com/documentation/installcenter/en/ikfdtnunxcg/66380/PDF/default/config.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions are at the bottom of the post.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Looking at the documentation in &amp;lt;SASHome&amp;gt;/SASFoundation/9.4/utilities/bin/sasauth.conf, there are three ways to authenticate a user (BIND, MATCH, or QUERY). We decided to go with the MATCH or QUERY methods for authentication. However, we've run into a few errors with both methods.&lt;/P&gt;&lt;P&gt;With MATCH, it seems that the user is found, but SAS runs into an issue with getting the encrypted password.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;20190111-14:30:01 Authenticating user &amp;lt;USERNAME&amp;gt; via ldap&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20190111-14:30:01 LDAP: Authenticating user &amp;lt;USERNAME&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20190111-14:30:01 Build entry DN: User domain ignored (if any).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20190111-14:30:01 Set LDAP to version 3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20190111-14:30:01 LDAP: Connecting to &amp;lt;LDAP_URL&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20190111-14:30:01 LDAP: Using protocol version 3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20190111-14:30:01 LDAP: binding to '&amp;lt;LDAP_HOST_DN&amp;gt;'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20190111-14:30:01 LDAP: entrydn is '&amp;lt;LDAP_USERBASE&amp;gt; &amp;lt;LDAP_SEARCHBASE&amp;gt;'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20190111-14:30:01 LDAP: filter is '(&amp;amp;(sAMAccountName=&amp;lt;USERNAME&amp;gt;)(&amp;amp;(objectClass=user)))'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20190111-14:30:01 LDAP: UID is XXX&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20190111-14:30:01 LDAP: GID is XXX&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20190111-14:30:01 Request failed: 'Did not get encrypted password for user.'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;```&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With BIND, we're getting an operations error.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;20190111-15:23:04 Authenticating user &amp;lt;USERNAME&amp;gt; via ldap&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20190111-15:23:04 LDAP: Authenticating user &amp;lt;USERNAME&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20190111-15:23:04 LDAP: Search for user in domain &amp;lt;LDAP_DOMAIN&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20190111-15:23:04 Set LDAP to version 3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20190111-15:23:04 LDAP: Connecting to &amp;lt;LDAP_DOMAIN&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20190111-15:23:04 LDAP: Using protocol version 3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20190111-15:23:04 LDAP: binding to '&amp;lt;LDAP_HOST_DN&amp;gt;,'XX&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;XX'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20190111-15:23:04 LDAP: Searching for user DN using query '(sAMAccountName=&amp;lt;USERNAME&amp;gt;)'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20190111-15:23:04 DN query failed in domain '&amp;lt;LDAP_DOMAIN&amp;gt;'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20190111-15:23:04 Operations error&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had the following questions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;With MATCH and Active Directory, has anyone had any success with retrieving an encrypted password? I've used the password attribute unicodePwd, which is what our other applications use when authenticating against LDAP.&lt;/LI&gt;&lt;LI&gt;Is there a way to see the exact DN query that the QUERY method uses to find the user's DN? I'm thinking that this is our best bet with authenticating against LDAP.&lt;/LI&gt;&lt;LI&gt;Is there an additional setup that we have to do on the SAS EC2 instance to create users? As of now, we only have the sas user which is used to install and run SAS Studio Basic. Does each user in LDAP also need a corresponding Unix system user?&lt;/LI&gt;&lt;LI&gt;If anyone has successfully set up SAS Studio basic to authenticate against Active Directory (either using ldap or a combination of PAM and LDAP), could you please share an overview of your working configuration?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 15:56:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Basic-3-71-and-LDAP-Authentication-using/m-p/526393#M15389</guid>
      <dc:creator>darwinwalters</dc:creator>
      <dc:date>2019-01-11T15:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Basic 3.71 and LDAP Authentication using</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Basic-3-71-and-LDAP-Authentication-using/m-p/532549#M15548</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/228073"&gt;@darwinwalters&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this is an interesting question. I would personally lay the AD or LDAP authentication onto the shoulders of the operating system itself, with PAM. But this would be my personal choice.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this sense, with PAM and SSSD (or realm for Active Directory), you can let the operating system to authenticate internally with your Identity Provider, no matter which one. And once oyu do this, and you test that it works, that you can authenticate to the OS with your AD user, you only need to let SAS to use PAM on its terms (see&amp;nbsp;&lt;A href="http://support.sas.com/kb/49/432.html" target="_blank"&gt;http://support.sas.com/kb/49/432.html&lt;/A&gt; )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This would be my choice because then the authentication can be managed by its real experts. Also the authentication is much easier and secure for you, and, furthermore, Google is full of examples on how to do all of that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.google.nl/search?q=PAM+SSSD&amp;amp;rlz=1C1GCEU_nlNL823NL827&amp;amp;oq=PAM+SSSD&amp;amp;aqs=chrome..69i57.3591j0j7&amp;amp;sourceid=chrome&amp;amp;ie=UTF-8" target="_blank"&gt;https://www.google.nl/search?q=PAM+SSSD&amp;amp;rlz=1C1GCEU_nlNL823NL827&amp;amp;oq=PAM+SSSD&amp;amp;aqs=chrome..69i57.3591j0j7&amp;amp;sourceid=chrome&amp;amp;ie=UTF-8&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This being said, let me answer ayour other questions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. I would not ever like to retrieve a password, encrypted or not. The more the confidential information is kept at origin, the best. A secure handshake is better!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Yes, there is always is, by increasing the level of the logs of the sas java process. I cannot recall not which one is the right one now, but if you are interested, I am sure SAS Technical Support can give you a hand there&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. If you use this authentication, yes, you would need local and AD user, corresponding, If you use the PAM module, you only need one that is in the AD or LDAP. Of course, extra admin actions would need to be taken then anyways in the SSSD configuration: which users would be part of what local groups, ACLs, roles for each local group, etc. The normal stuff.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. I think I answer it already at the top.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this help? Please let us know.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Juan&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 12:25:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Basic-3-71-and-LDAP-Authentication-using/m-p/532549#M15548</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2019-02-04T12:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Basic 3.71 and LDAP Authentication using</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Basic-3-71-and-LDAP-Authentication-using/m-p/532557#M15553</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/228073"&gt;@darwinwalters&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Request failed: 'Did not get encrypted password for user.'&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I would like to know what did you set in these options:&lt;/P&gt;
&lt;UL style="list-style-position: inside;"&gt;
&lt;LI&gt;LDAP_SCHEMA&lt;/LI&gt;
&lt;LI&gt;LDAP_PASSWD_ATTRIBUTE&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;SASAUTH here tried to retrieve a password from LDAP_PASSWD_ATTRIBUTE and failed because nothing has been returned from an LDAP server.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;20190111-15:23:04 LDAP: Searching for user DN using query '(sAMAccountName=&amp;lt;USERNAME&amp;gt;)'&lt;BR /&gt;20190111-15:23:04 DN query failed in domain '&amp;lt;LDAP_DOMAIN&amp;gt;'&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm wondering to see what will be returned from this command:&lt;/P&gt;
&lt;P&gt;ldapsearch -b "" -D "sAMAccountName=&amp;lt;USERNAME&amp;gt;" -h &amp;lt;SERVER_NAME&amp;gt; -W -x&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 13:08:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Basic-3-71-and-LDAP-Authentication-using/m-p/532557#M15553</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2019-02-04T13:08:34Z</dc:date>
    </item>
  </channel>
</rss>

