Bug 1118347
| Summary: | ksu non-functional, gets invalid argument copying cred cache | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Nalin Dahyabhai <nalin> |
| Component: | krb5 | Assignee: | Nalin Dahyabhai <nalin> |
| Status: | CLOSED ERRATA | QA Contact: | Patrik Kis <pkis> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.0 | CC: | cristian.balint, dpal, extras-qa, jsbillin, nalin, nathaniel, nneul, pkis, rmainz |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | krb5-1.12.2-8.el7 | Doc Type: | Bug Fix |
| Doc Text: |
Cause: Due to an bug in a fix included in the previous version of this package, ksu would fail to set up a credential cache for the target user when the value of the default_ccache_name setting configured in /etc/krb5.conf specified a FILE: type credential cache name.
Consequence: ksu would fail and would not attempt to run the specified command or the shell as the target user.
Fix: This case is now accounted for in the applied fix.
Result: ksu should no longer fail in these cases.
|
Story Points: | --- |
| Clone Of: | 1089035 | Environment: | |
| Last Closed: | 2015-03-05 10:01:01 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1089035 | ||
| Bug Blocks: | |||
|
Description
Nalin Dahyabhai
2014-07-10 13:19:31 UTC
Hi Nalin,
any hints how to reproduce this issue? I probably miss something.
[root@fed ~]# rpm -q krb5-workstation
krb5-workstation-1.11.5-4.fc20.x86_64
[root@fed ~]# cat /etc/krb5.conf
[logging]
default = FILE:/var/log/krb5libs.log
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmind.log
[libdefaults]
dns_lookup_realm = false
ticket_lifetime = 24h
renew_lifetime = 7d
forwardable = true
rdns = false
default_realm = PKIS.NET
#default_ccache_name = KEYRING:persistent:%{uid}
[realms]
PKIS.NET = {
kdc = fed.pkis.net
admin_server = fed.pkis.net
}
[domain_realm]
.pkis.net = PKIS.NET
pkis.net = PKIS.NET
[root@fed ~]#
[root@fed ~]# cat /home/alice/.k5login
bob
[root@fed ~]#
[root@fed ~]# ssh bob@localhost
bob@localhost's password:
Last login: Tue Nov 4 16:59:31 2014 from localhost
[bob@fed ~]$
bob@fed ~]$ kinit bob
Password for bob:
[bob@fed ~]$ klist
Ticket cache: FILE:/tmp/krb5cc_1002
Default principal: bob
Valid starting Expires Service principal
11/04/2014 16:59:52 11/05/2014 16:59:52 krbtgt/PKIS.NET
renew until 11/04/2014 16:59:52
[bob@fed ~]$
[bob@fed ~]$ ksu alice
Authenticated bob
Account alice: authorization for bob successful
Changing uid to alice (1001)
[alice@fed bob]$
Interesting. I can now no longer reproduce this with the older version of the RPM now either... (In reply to nneul from comment #4) > Interesting. I can now no longer reproduce this with the older version of > the RPM now either... Did you use a specific RPM or do you use a repository ? (Guessing...) maybe the RPM in the repository was updated to a newer version ? I managed to reproduced the issue: the trick is to log in via ksu twice. The 2nd login will fail. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-0439.html |