Layer7 Access Management

Expand all | Collapse all

Kerberos relocation error:  krb5_get_init_creds_opt_set_fast_ccache_name

Jump to Best Answer
  • 1.  Kerberos relocation error:  krb5_get_init_creds_opt_set_fast_ccache_name

    Posted 08-22-2017 12:04 PM


    The referenced article references a similar problem, but the specific relocation error is a bit different:  symbol krb5_get_init_creds_opt_alloc.  The article touches on the fact that the output of the 'ldd' command for Kerberos commands references shared object that are in the path of the web agent rather than all shared objects being in /lib64.  The article ends inconclusively and no solution is presented.


    I'm setting up a proof-of-concept for a customer in a lab environment.  On the Linux CentOS 7.3 server where I want to host the authentication scheme with an Apache 2.2.27 web server and SiteMinder web agent, there are multiple references to shared objects being in the webagent path rather than lib64:

    [root@avid-cfv142 etc]# ldconfig -p|grep krb5
   (libc6,x86-64) => /lib64/
   (libc6,x86-64) => /tools/smwa/125/webagent/bin/
   (libc6,x86-64) => /lib64/
   (libc6,x86-64) => /tools/smwa/125/webagent/bin/
   (libc6,x86-64) => /lib64/
   (libc6,x86-64) => /tools/smwa/125/webagent/bin/
   (libc6,x86-64) => /lib64/
    [root@avid-cfv142 etc]# ldd /usr/bin/net | grep krb5
   => /usr/lib64/samba/ (0x00007f4096c6d000)
   => /lib64/ (0x00007f40961a5000)
   => /tools/smwa/125/webagent/bin/ (0x00007f4093ef1000)
   => /tools/smwa/125/webagent/bin/ (0x00007f409358f000)
   => /usr/lib64/samba/ (0x00007f408e4a3000)
   => /tools/smwa/125/webagent/bin/ (0x00007f408cc2e000)
    [root@avid-cfv142 etc]#  ldd /usr/bin/klist | grep krb5
   => /tools/smwa/125/webagent/bin/ (0x00007ffade5e9000)
   => /tools/smwa/125/webagent/bin/ (0x00007ffade1b6000)
    [root@avid-cfv142 etc]#  ldd /usr/bin/kinit | grep krb5
   => /tools/smwa/125/webagent/bin/ (0x00007f8961c86000)
   => /tools/smwa/125/webagent/bin/ (0x00007f8961aff000)
   => /tools/smwa/125/webagent/bin/ (0x00007f89616cc000)
    [root@avid-cfv142 etc]#


    Anyone know how to steer around the relocation errors such as the one below being thrown by Kerberos commands?

    [webadmin@avid-cfv142 krb5]$ kinit some_account
    kinit: relocation error: kinit: symbol krb5_get_init_creds_opt_set_fast_ccache_name, version krb5_3_MIT not defined in file with link time reference
    [webadmin@avid-cfv142 krb5]$


    These are the Kerberos environment variables in effect:

    [webadmin@avid-cfv142 krb5]$ env | grep -i krb
    [webadmin@avid-cfv142 krb5]$

  • 2.  Re: Kerberos relocation error:  krb5_get_init_creds_opt_set_fast_ccache_name
    Best Answer

    Posted 08-23-2017 02:46 PM

    I found that this error was resolved by adding this environment variable: