Skip to content

kerberos ccache filename is replaced on every concurrent login with the same user #8331

@kaushikub

Description

@kaushikub

Config file used:

[sssd]
domains = LDAP-KRB5
services = nss, pam
 
[domain/LDAP-KRB5]
debug_level = 9
id_provider = ldap
ldap_uri = ldap://$SERVER
ldap_search_base = dc=example,dc=com
auth_provider = krb5
krb5_server = $SERVER
krb5_realm = EXAMPLE.COM

A simple reproducer can be:

expect -f - <<<'
    spawn ssh -o StrictHostKeyChecking=no puser1@localhost
    expect "password: "
    send -- "$pass\r"
    expect "$ "
    sleep 1
    send -- "klist\r"
    expect "$ "
    sleep 15
    send -- "exit\r"
' &

sleep 5

expect -f - <<<'
    spawn ssh -o StrictHostKeyChecking=no puser1@localhost
    expect "password: "
    send -- "$pass\r"
    expect "$ "
    sleep 1
    send -- "klist\r"
    expect "$ "
    sleep 10
    send -- "exit\r"
' &

sleep 5

expect -f - <<<'
    spawn ssh -o StrictHostKeyChecking=no puser1@localhost
    expect "password: "
    send -- "$pass\r"
    expect "$ "
    sleep 1
    send -- "klist\r"
    expect "$ "
    send -- "exit\r"
'

Check the klist output starting with "Ticket cache: FILE:". This changes every time.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions