<?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: Using AD-user for database connection in batch triggered by LSF. in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Using-AD-user-for-database-connection-in-batch-triggered-by-LSF/m-p/665716#M19312</link>
    <description>Hi! Thank for your response &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Yes, I can logon to the database outside sas. I also created and tested (successfully) an ODBC connection in OS where sas is running. Thanks again!</description>
    <pubDate>Mon, 29 Jun 2020 08:16:51 GMT</pubDate>
    <dc:creator>nilshermann_wiggen_knowit_se</dc:creator>
    <dc:date>2020-06-29T08:16:51Z</dc:date>
    <item>
      <title>Using AD-user for database connection in batch triggered by LSF.</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Using-AD-user-for-database-connection-in-batch-triggered-by-LSF/m-p/665345#M19305</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using LSF for batch scheduling, with the lsfadm user. When running jobs that connects to databases (MSsql, Oracle) we want to use Active Directory users for access to the databases. What we have done till now:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Created local database users and registered these in SAS metadata.&lt;/LI&gt;&lt;LI&gt;We have made authentication domains for each user login (to source databases).&lt;/LI&gt;&lt;LI&gt;We made a metadata user group with the database user account with the correct authentication domain&lt;/LI&gt;&lt;LI&gt;Then we have placed the lsfadm user in this goup.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This works, but when we want to use AD-users for accessing databases we can’t get it to work. When trying to use AD users instead of local database users the batch is not using the database user, but instead uses the lsfadm user in the connection string/libname. We then get errors in the libname statement. We have also tried to put the AD-users account directly on the lsfadm user, but no luck.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 13:05:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Using-AD-user-for-database-connection-in-batch-triggered-by-LSF/m-p/665345#M19305</guid>
      <dc:creator>nilshermann_wiggen_knowit_se</dc:creator>
      <dc:date>2020-06-26T13:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using AD-user for database connection in batch triggered by LSF.</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Using-AD-user-for-database-connection-in-batch-triggered-by-LSF/m-p/665373#M19308</link>
      <description>Are you able to connect to database using AD user outside of SAS successfully?</description>
      <pubDate>Fri, 26 Jun 2020 14:34:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Using-AD-user-for-database-connection-in-batch-triggered-by-LSF/m-p/665373#M19308</guid>
      <dc:creator>AnandVyas</dc:creator>
      <dc:date>2020-06-26T14:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using AD-user for database connection in batch triggered by LSF.</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Using-AD-user-for-database-connection-in-batch-triggered-by-LSF/m-p/665480#M19309</link>
      <description>&lt;P&gt;How are you scheduling these LSF jobs? We schedule ours in SAS Management Console, and when we do this we are prompted for the user to run the job under and so enter our own user name. Our database library connections are set up for Windows Authentication so it all works fine.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 23:36:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Using-AD-user-for-database-connection-in-batch-triggered-by-LSF/m-p/665480#M19309</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-06-26T23:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using AD-user for database connection in batch triggered by LSF.</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Using-AD-user-for-database-connection-in-batch-triggered-by-LSF/m-p/665716#M19312</link>
      <description>Hi! Thank for your response &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Yes, I can logon to the database outside sas. I also created and tested (successfully) an ODBC connection in OS where sas is running. Thanks again!</description>
      <pubDate>Mon, 29 Jun 2020 08:16:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Using-AD-user-for-database-connection-in-batch-triggered-by-LSF/m-p/665716#M19312</guid>
      <dc:creator>nilshermann_wiggen_knowit_se</dc:creator>
      <dc:date>2020-06-29T08:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using AD-user for database connection in batch triggered by LSF.</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Using-AD-user-for-database-connection-in-batch-triggered-by-LSF/m-p/665719#M19313</link>
      <description>Hi! Thank you for the reply! We design the flow in Management Console with our own user. We get prompted when scheduling the flow, like you do, but then we enter "&amp;lt;domain&amp;gt;\lsfadm" and password. Your solution sounds easy and simple in a way, but we rather won't have the flows run by multiple usernames. Doesn't that get a bit messy in LSF? With this solution all administration users that is scheduling flows need access to the source databases also right? We rather want one AD user pr source database for this. In that way we are not dependent on one spesific administrator to administer the flow.&lt;BR /&gt;This works fine where we have local database users, but, as the problem is, not when using AD user.&lt;BR /&gt;Thanks again for you reply!</description>
      <pubDate>Mon, 29 Jun 2020 08:33:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Using-AD-user-for-database-connection-in-batch-triggered-by-LSF/m-p/665719#M19313</guid>
      <dc:creator>nilshermann_wiggen_knowit_se</dc:creator>
      <dc:date>2020-06-29T08:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using AD-user for database connection in batch triggered by LSF.</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Using-AD-user-for-database-connection-in-batch-triggered-by-LSF/m-p/665786#M19320</link>
      <description>&lt;P&gt;In response to your question about having the AD users schedule flows, you are correct that it can get messy and you have the potential of having the same flow scheduled by multiple users.&amp;nbsp; We use a service account or batch user, something named "marketing_batch" or similar.&amp;nbsp; When scheduling the flow, we use that user.&lt;BR /&gt;&lt;BR /&gt;That doesn't help with your problem, though.&amp;nbsp; I feel like you're really close as you've described your auth domains.&amp;nbsp; Of course, they are the key to doing what you want.&amp;nbsp; &amp;nbsp;My only advice is to make sure your connection in the server object specifies the authentication domain that matches what you have in your metadata group.&amp;nbsp; From the description, it seems like there's a slight adjustment necessary somewhere.&lt;BR /&gt;&lt;BR /&gt;What you've described is entirely possible.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 13:38:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Using-AD-user-for-database-connection-in-batch-triggered-by-LSF/m-p/665786#M19320</guid>
      <dc:creator>kdebruhl</dc:creator>
      <dc:date>2020-06-29T13:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using AD-user for database connection in batch triggered by LSF.</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Using-AD-user-for-database-connection-in-batch-triggered-by-LSF/m-p/666226#M19326</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/3854"&gt;@nilshermann_wiggen_knowit_se&lt;/a&gt;&amp;nbsp; - Can you post an example of the failing database connection LIBNAME statement? Are you defining these in code or in metadata?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 22:45:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Using-AD-user-for-database-connection-in-batch-triggered-by-LSF/m-p/666226#M19326</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-06-30T22:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using AD-user for database connection in batch triggered by LSF.</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Using-AD-user-for-database-connection-in-batch-triggered-by-LSF/m-p/666578#M19348</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have tried to define the libname in both the metadata and in an user written code that runs a database procedure. I get the same error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;88 /* Access the data for A.19 analytix_tos_test */&lt;BR /&gt;89 LIBNAME anltxtos ODBC DATAsrc=analytix_tos_test SCHEMA=dbo AUTHDOMAIN="analytix_access" ;&lt;BR /&gt;NOTE: Credential obtained from SAS metadata server.&lt;BR /&gt;ERROR: CLI error trying to establish connection: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '**\lsfadm'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the same error if I choose the correct "Default Login" in the libname. Still the lsfadm is being used.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="analytix_feil.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/46849i2335DFE0ED6086BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="analytix_feil.PNG" alt="analytix_feil.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="analytix_feil_2.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/46850i54551EDC0AAF9859/image-size/medium?v=v2&amp;amp;px=400" role="button" title="analytix_feil_2.PNG" alt="analytix_feil_2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 11:14:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Using-AD-user-for-database-connection-in-batch-triggered-by-LSF/m-p/666578#M19348</guid>
      <dc:creator>nilshermann_wiggen_knowit_se</dc:creator>
      <dc:date>2020-07-02T11:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using AD-user for database connection in batch triggered by LSF.</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Using-AD-user-for-database-connection-in-batch-triggered-by-LSF/m-p/666592#M19350</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This looks very familiar.&amp;nbsp; I've attached links to the two SAS notes that I use when setting up SQL Server connections.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/42/605.html" target="_blank"&gt;https://support.sas.com/kb/42/605.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/48/348.html" target="_blank"&gt;https://support.sas.com/kb/48/348.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;As you can see from 42605:&lt;BR /&gt;&lt;STRONG&gt;Important note:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;This type of authentication does not support supplying a user ID in the form of&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Domain\Userid&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;from the connection in SAS. Authentication of the user ID is done through the use of Kerberos in the operating system. No user ID or password are required on the connection string in SAS.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That seems to be what we're seeing here with your situation.&amp;nbsp; Even though you have the AuthDomain defined correctly, the actual authentication is being done via Kerberos.&amp;nbsp; The user/password, or in this case, the AuthDomain, is not actually passed to the database.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope these notes help.&amp;nbsp; I refer to them often when setting up MS Sql Server connections.&amp;nbsp; We have some that use database id's and require AuthDomains, and some that use Kerberos.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this is helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 13:39:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Using-AD-user-for-database-connection-in-batch-triggered-by-LSF/m-p/666592#M19350</guid>
      <dc:creator>kdebruhl</dc:creator>
      <dc:date>2020-07-02T13:39:03Z</dc:date>
    </item>
  </channel>
</rss>

