<?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: Casing of Default Principal in TGT in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Casing-of-Default-Principal-in-TGT/m-p/398298#M10482</link>
    <description>&lt;P&gt;Perfect, thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 23 Sep 2017 16:19:25 GMT</pubDate>
    <dc:creator>nhvdwalt</dc:creator>
    <dc:date>2017-09-23T16:19:25Z</dc:date>
    <item>
      <title>Casing of Default Principal in TGT</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Casing-of-Default-Principal-in-TGT/m-p/397689#M10457</link>
      <description>&lt;P&gt;Morning team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have SAS Grid 9.4 on Linux. SAS automatically generates the TGT when the user logs on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When looking at the TGT, it is generated with the Default Principal in lowercaps e.g. x123@MYREALM.COM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible for SAS to generate the TGT with an uppercase i.e. X123@MYREALM.COM ? Our Hadoop only sees you with an uppercase&amp;nbsp;Default Principal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When using kinit on the command line you can achieve this by just making the userid upper or lowercase i.e. kinit X123@MYREALM.COM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 05:11:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Casing-of-Default-Principal-in-TGT/m-p/397689#M10457</guid>
      <dc:creator>nhvdwalt</dc:creator>
      <dc:date>2017-09-21T05:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Casing of Default Principal in TGT</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Casing-of-Default-Principal-in-TGT/m-p/397735#M10459</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/145980"&gt;@nhvdwalt&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you login, you enter the username in lower or upper case?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 10:55:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Casing-of-Default-Principal-in-TGT/m-p/397735#M10459</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2017-09-21T10:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Casing of Default Principal in TGT</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Casing-of-Default-Principal-in-TGT/m-p/397737#M10461</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Enterprise Guide we log in with lowercaps else UNIX doesn't recognise the user.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 11:06:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Casing-of-Default-Principal-in-TGT/m-p/397737#M10461</guid>
      <dc:creator>nhvdwalt</dc:creator>
      <dc:date>2017-09-21T11:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Casing of Default Principal in TGT</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Casing-of-Default-Principal-in-TGT/m-p/397739#M10462</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/145980"&gt;@nhvdwalt&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try to change the default principal in TGT through .k5login:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Any user who would connect to the grid via grid-launched workspace servers will need a ~/.k5login file that contains their user principal. So for an example, assuming his $HOME is /home/x123, then he should have a /home/x123/.k5login that contains "X123@MYREALM.COM".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. A special kinit script should be constructed that is known only to the SAS Object Spawner environment by virtue of an addition to the ObjectSpawner_usermods.sh file to set the PATH to find this kinit before the system kinit command. For example, export PATH=/user/mod/kinit:$PATH .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. This special kinit script should look for the user's .k5login file and extract its contents, or at least its user principal (if say they follow the rules for .k5login file contents syntax). This user principal should be set into a temporary variable (say $MYPRINCIPAL and then be added to the end of the fully-qualified kinit command and arguments. Here is an EXAMPLE of what this MIGHT look like (this is offered as-is, no guarantees or warranties implied!):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=== &lt;BR /&gt;#!/bin/sh &lt;BR /&gt;# &lt;BR /&gt;MYPRINCIPAL=`cat ~/.k5login | head -1` &lt;BR /&gt;# &lt;BR /&gt;/usr/bin/kinit -f $* ${MYPRINCIPAL} &lt;BR /&gt;exit $? &lt;BR /&gt;===&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTES: depending on what hot fix you have, the -f flag might not be needed, in fact, could be counterproductive, so I would leave it off. Also, note that the user's .k5login file might need to have permissions other than simply to the user; for example, the account running the SAS Object Spawner might need read permission to the file. This should not be an issue since you will not have the user password stored there. Lastly, the system kinit command might not be under /usr/bin, so adjust accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Implementing this also, of course, requires a restart of the object spawner(s).&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 11:23:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Casing-of-Default-Principal-in-TGT/m-p/397739#M10462</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2017-09-21T11:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Casing of Default Principal in TGT</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Casing-of-Default-Principal-in-TGT/m-p/397966#M10464</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;, this is a good start.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would the user's password be handled with this script ?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 00:22:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Casing-of-Default-Principal-in-TGT/m-p/397966#M10464</guid>
      <dc:creator>nhvdwalt</dc:creator>
      <dc:date>2017-09-22T00:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Casing of Default Principal in TGT</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Casing-of-Default-Principal-in-TGT/m-p/398039#M10470</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/145980"&gt;@nhvdwalt&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to create a keytab file for your principal, with ktutil. Immediately after creating a keytab file, restrict access to the file with chmod, otherwise, anyone could use the file to "steal your Kerberos identity". Add -kt &amp;lt;/path/to/keytab_file&amp;gt; before &amp;lt;principal@REALM&amp;gt; in the kinit command to authenticate without entering the password.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 10:32:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Casing-of-Default-Principal-in-TGT/m-p/398039#M10470</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2017-09-22T10:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Casing of Default Principal in TGT</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Casing-of-Default-Principal-in-TGT/m-p/398298#M10482</link>
      <description>&lt;P&gt;Perfect, thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2017 16:19:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Casing-of-Default-Principal-in-TGT/m-p/398298#M10482</guid>
      <dc:creator>nhvdwalt</dc:creator>
      <dc:date>2017-09-23T16:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Casing of Default Principal in TGT</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Casing-of-Default-Principal-in-TGT/m-p/398521#M10487</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/145980"&gt;@nhvdwalt&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are welcome!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 13:08:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Casing-of-Default-Principal-in-TGT/m-p/398521#M10487</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2017-09-25T13:08:59Z</dc:date>
    </item>
  </channel>
</rss>

