- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Kerberos Credentials Cache not working - gss_krb5_...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2008 09:32 PM
тАО11-05-2008 09:32 PM
Kerberos Credentials Cache not working - gss_krb5_copy_ccache() failed
- Whats causing the gss_krb5_copy_ccache() failed in auth.log?
- Why the difference in cache file names between an interactive login (krb5cc_[PPID]_[PID]) and the gssapi session (krb5cc_[UID])?
At this point any lead would be greatly appreciated.
Thanks
Adrian
------------- Transcript of testing --------
# uname -a
HP-UX myhost B.11.23 U ia64 3992592774 unlimited-user license
# swlist ...
KRB5-Client B.11.23 Kerberos V5 Client Version 1.0
PAM-Kerberos C.01.24 PAM-Kerberos Version 1.24
krb5client D.1.6.2 Kerberos V5 Client Version 1.6.2
PHSS_34991 1.0 KRB5-Client Version 1.0 Cumulative patch
# klist -keK
Keytab name: FILE:/etc/krb5.keytab
KVNO Principal
---- --------------------------------------------------------------------------
5 host/myhost.mydomain.local@MYDOMAIN.LOCAL (ArcFour with HMAC/md5) (0x13ecc6b07bc1fe82b6d635fc56f8b2e7)
# kinit -k
# klist -ef
Ticket cache: FILE:/tmp/krb5cc_0
Default principal: host/myhost.mydomain.local@MYDOMAIN.LOCAL
Valid starting Expires Service principal
11/06/08 13:37:22 11/06/08 23:37:22 krbtgt/MYDOMAIN.LOCAL@MYDOMAIN.LOCAL
renew until 11/06/08 23:37:22, Flags: FRIA
Etype (skey, tkt): ArcFour with HMAC/md5, ArcFour with HMAC/md5
# kdestroy
# kinit user1
# klist -ef
Ticket cache: FILE:/tmp/krb5cc_0
Default principal: usera@MYDOMAIN.LOCAL
Valid starting Expires Service principal
11/06/08 13:38:46 11/06/08 23:38:46 krbtgt/MYDOMAIN.LOCAL@MYDOMAIN.LOCAL
renew until 11/06/08 23:38:46, Flags: FRIA
Etype (skey, tkt): ArcFour with HMAC/md5, ArcFour with HMAC/md5
# kdestroy
[Log-off and log back in using interactive SSH session (i.e. prompted for userid and password)]
# klist -ef
Ticket cache: FILE:/tmp/krb5cc_8260_8570
Default principal: usera@MYDOMAIN.LOCAL
Valid starting Expires Service principal
11/06/08 13:50:08 11/06/08 23:50:08 krbtgt/MYDOMAIN.LOCAL@MYDOMAIN.LOCAL
renew until 11/06/08 23:50:08, Flags: RIA
Etype (skey, tkt): ArcFour with HMAC/md5, ArcFour with HMAC/md5
# kdestroy
[Log-off and log back in using kerberised SSH client via GSSAPI (i.e. not prompted for userid and password)]
Logon banner includes:
Using username "usera".
Using GSSAPI service principal name "host/myhost.mydomain.local".
# klist -ef
klist: No credentials cache found (ticket cache FILE:/tmp/krb5cc_0)
Extract from /var/adm/syslog/auth.log reads:
Nov 6 13:54:06 myhost sshd[8666]: Connection from 10.228.114.148 port 2365
Nov 6 13:54:06 myhost sshd[8666]: Failed none for usera from 10.228.114.148 port 2365 ssh2
Nov 6 13:54:06 myhost sshd[8666]: Authorized to usera, krb5 principal usera@MYDOMAIN.LOCAL (krb5_kuserok)
Nov 6 13:54:06 myhost sshd[8666]: Accepted gssapi-with-mic for usera from 10.228.114.148 port 2365 ssh2
Nov 6 13:54:06 myhost sshd[8666]: Pam Creds are not available
Nov 6 13:54:06 myhost sshd[8669]: gss_krb5_copy_ccache() failed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2008 01:02 PM
тАО11-07-2008 01:02 PM
Re: Kerberos Credentials Cache not working - gss_krb5_copy_ccache() failed
klist: No credentials cache found
What is the version of secure shell installed on the HP-UX 11.23 box?
What do you get by running command when using GSSAPI
# pamkrbval -v
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2008 02:50 PM
тАО11-09-2008 02:50 PM
Re: Kerberos Credentials Cache not working - gss_krb5_copy_ccache() failed
T1471AA A.05.10.007 HP-UX Secure Shell
# pamkrbval -a ia64 -v
Validating the pam configuration files
---------- --- --- ------------- -----
Validating the /etc/pam.conf file
[LOG] : The /etc/pam.conf files permissions are fine
[LOG] : Opened : /etc/pam.conf
[PASS] : The validation of config file: /etc/pam.conf passed
[NOTICE] : The validation of config file: /etc/pam_user.conf is not done
as libpam_updbe library is not configured
Validating the kerberos config file
---------- --- -------- ------ -----
[PASS] : Initialization of kerberos passed
Connecting to default Realm
---------- -- ------- -----
[LOG] : The default realm is : MYDOMAIN.LOCAL
[LOG] : KDC hosts for realm MYDOMAIN.LOCAL :dc1.mydomain.local
dc2.mydomain.local
[LOG] : Trying to contact KDC for realm MYDOMAIN.LOCAL...
[LOG] : Realm MYDOMAIN.LOCAL is answering ticket requests
[PASS] : Default Realm is issuing tickets
Validating the keytab entry for the host service principal
---------- --- ------ ----- --- --- ---- ------- ---------
[LOG] : Host myhost, aka myhost.mydomain.local
[LOG] : The default keytab name is : /etc/krb5.keytab
[LOG] : Keytab file /etc/krb5.keytab is present
[LOG] : Permissions on /etc/krb5.keytab are correct.
Keytab entry
Principal: host
Host : myhost.mydomain.local
Realm : MYDOMAIN.LOCAL
Version : 5
[LOG] : Pinging KDC to verify whether host/myhost.mydomain.local@MYDOMAIN.LOCAL exists
[LOG] : The keytab entry for the host service principal host/myhost.mydomain.local@MYDOMAIN.LOCAL is valid
[PASS] : The keytab validation is successful
Validating the rc_host file for ownership
-------- ------ ---- -------- ------ -----
[LOG] : rc_host file /usr/tmp/rc_host_0 is not present on the system
[PASS] :The Validation of rc_host file:/usr/tmp/rc_host_0 is successful
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2008 03:15 PM
тАО11-10-2008 03:15 PM
Re: Kerberos Credentials Cache not working - gss_krb5_copy_ccache() failed
When GSSAPI is attempted which seems to be setup at secure shell client end, the user is not able to log in.
klist: No credentials cache found (ticket cache FILE:/tmp/krb5cc_0) indicates the cache for uid 0 and it was destroyed by running kdestroy earlier and it's being reverting back to the user root so the error.
Refer the procedure to setup GSSAPI authentication.
http://docs.hp.com/en/5991-7493/ch04s04.html#babcfhjbo
To answer your second question about different cache filenames /tmp/krb5cc_
/tmp/krb5cc_
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2008 06:22 PM
тАО11-10-2008 06:22 PM
Re: Kerberos Credentials Cache not working - gss_krb5_copy_ccache() failed
There seems to be a point of confusion - the GSSAPI configuration of SSH is enabled and the user is certainly able to logon. The issue is retention of the forwarded kerberos credentials i.e. the credentials aren't being persisted to cache on the server end of the transaction.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2008 07:31 PM
тАО11-13-2008 07:31 PM
Re: Kerberos Credentials Cache not working - gss_krb5_copy_ccache() failed
I have not worked through this entirely but the help text in PuTTY suggests that this option is applicable if the computer account has the "Trust this computer for delegation". This is the case for me but it doesn't seem to work as described.