I noticed that pam_krb5 sets:
$KRB5CCNAME to /tmp/krb5cc_<uid>_<six-random-chars>
Which can cause the "Required key not available" error because mount.cifs is actually looking for a per-uid, not per-session file at /tmp/_<uid>.
Not yet found a way around it, but to mount things manually I have to do e.g.: $ sudo cp /tmp/krb5cc_<1234>_<blahblah> /tmp/krb5cc_<1234>
After that, mount commands with "-o sec=krb5" actually works. Some background info here:
https://bugzilla.redhat.com/show_bug.cgi?id=517195
I noticed that pam_krb5 sets:
$KRB5CCNAME to /tmp/krb5cc_ <uid>_< six-random- chars>
Which can cause the "Required key not available" error because mount.cifs is actually looking for a per-uid, not per-session file at /tmp/_<uid>.
Not yet found a way around it, but to mount things manually I have to do e.g.: <1234>_ <blahblah> /tmp/krb5cc_<1234>
$ sudo cp /tmp/krb5cc_
After that, mount commands with "-o sec=krb5" actually works. Some background info here:
https:/ /bugzilla. redhat. com/show_ bug.cgi? id=517195