Skip to Content
0
Aug 04, 2011 at 09:34 PM

Using Kerberos SNC on Lion

316 Views

All,

We had setup a SAP system to use the Kerberos SNC allowing SSO when connected to a domain. This was not working for me using SAP Java gui 7.20 rev 5 on Lion; failing with the error:

Unable to load GSS-API dyld Shared Library

named "sncgss.dyld"

I have been able to solve this by setting the environment variable SNC_LIB to OSX provided library /usr/lib/libgssapi_krb5.dylib

Following small script will set this environment variable accordingly so that it is available when starting SAPGUI from Finder, Spotlight, Launchpad, ...

Script:

#!/bin/bash

echo Setting the SNC environment for current user.
mkdir ~/.MacOSX >/dev/null 2>&1
defaults write ~/.MacOSX/environment.plist SNC_LIB "/usr/lib/libgssapi_krb5.dylib"

Just create a small text file, copy&paste this information into it. Then open Terminal and do:

chmod a+x <filename you just created>

./<filename you just created>

Thus, if I saved this to my home folder (/Users/myuserid) then as file SET_SNC then when opening Terminal I would enter:

chmod a+x ./SET_SNC

./SET_SNC

No guarantees that this will work and use on your own risk. It worked for me without interfering with anything else but that is not to say it might work for you or might interfere with something else.

Edited by: Erik Hendrix on Aug 5, 2011 12:35 AM

Edited by: Erik Hendrix on Aug 5, 2011 12:38 AM