BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
nhvdwalt
Barite | Level 11

Hi all,

 

Outside of SAS Grid and outside of Hadoop...

 

Does anyone know if it's possible for SAS to automatically requests a TGT i.e. kinit when a user logs onto UNIX ?

 

I can include a call to kinit somewhere e.g. Workspace_Server_usermods.sh, but then I need a keytab file, which I'm trying to avoid.

 

I know the Object Spawner in SAS Grid can do this, but I'm looking for this functionality outside of Grid.

 

Thanks a mil,

Nico.

1 ACCEPTED SOLUTION

Accepted Solutions
alexal
SAS Employee

@nhvdwalt,

 

>> you have no idea how long I've looked for this

You are welcome.

 

>> Would I need to restart the Object Spawner ?

Yes, also you should add the following script to WorkspaceServer_usermods.sh

 

workspace_user=$(whoami)
workspace_user_ccaches=$(find /tmp -maxdepth 1 -user ${workspace_user} -type f -name "krb5cc_*" -printf '%T@ %p\n' | sort -k 1nr | sed 's/^[^ ]* //' | head -n 1)
if test ! -z "$workspace_user_ccaches"; then
echo "Most recent krb5 ccache found for '${workspace_user}' at '${workspace_user_ccaches}'."
echo "Cache last modified: $(stat -c%y ${workspace_user_ccaches})"
export KRB5CCNAME=$workspace_user_ccaches
echo "KRB5CCNAME has been set to ${KRB5CCNAME}."
else
echo "No krb5 credentials caches were found in /tmp for '${workspace_user}'."
fi


>> Is it possible to get notification for new posts on the site ?

Yes, you can subscribe to the topic or the board. Click on the wheel in the right top corner.

View solution in original post

4 REPLIES 4
alexal
SAS Employee

@nhvdwalt,

 

If you configure PAM authentication and uncomment the following line in /<SASHome>/SASFoundation/9.4/utilities/bin/sasauth.conf:

 

PAM_SETCREDENTIALS=TRUE

 

The Kerberos ticket will be created every time when the sasauth process will be called.

 

Let me know if you have any questions.

nhvdwalt
Barite | Level 11

Thanks alexal, you have no idea how long I've looked for this 🙂

 

If I test it through PROC PERMTEST, it's works, but not via Enterprise Guide. Would I need to restart the Object Spawner ?

 

Off topic.....Is it possible to get notification for new posts on the site ? I've looked through my settings but cannnot find anything.

 

Thanks,

Nico.

 

 

alexal
SAS Employee

@nhvdwalt,

 

>> you have no idea how long I've looked for this

You are welcome.

 

>> Would I need to restart the Object Spawner ?

Yes, also you should add the following script to WorkspaceServer_usermods.sh

 

workspace_user=$(whoami)
workspace_user_ccaches=$(find /tmp -maxdepth 1 -user ${workspace_user} -type f -name "krb5cc_*" -printf '%T@ %p\n' | sort -k 1nr | sed 's/^[^ ]* //' | head -n 1)
if test ! -z "$workspace_user_ccaches"; then
echo "Most recent krb5 ccache found for '${workspace_user}' at '${workspace_user_ccaches}'."
echo "Cache last modified: $(stat -c%y ${workspace_user_ccaches})"
export KRB5CCNAME=$workspace_user_ccaches
echo "KRB5CCNAME has been set to ${KRB5CCNAME}."
else
echo "No krb5 credentials caches were found in /tmp for '${workspace_user}'."
fi


>> Is it possible to get notification for new posts on the site ?

Yes, you can subscribe to the topic or the board. Click on the wheel in the right top corner.

nhvdwalt
Barite | Level 11

Thanks a mil, all working now 🙂

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 3163 views
  • 2 likes
  • 2 in conversation