/etc/auto.smb does not detect kerberos tickets in keyring

Bug #1669957 reported by Uli
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autofs (Ubuntu)
New
Wishlist
Unassigned

Bug Description

The presence of a kerberos ticket is not detected by /etc/auto.smb within the method get_krb5_cache if the ticket is stored in the keyring.

Wrong behaviour:

$ klist
Ticket cache: KEYRING:persistent:YYY:krb_ccache_cjPUxaM
Default principal: ulif@XXX

Valid starting Expires Service principal
04/03/17 14:27:35 05/03/17 00:27:35 krbtgt/XXX@XXX
renew until 05/03/17 14:27:35

$ /etc/auto.smb <hostname>
-fstype=cifs,guest
...

Expected behaviour:
$ /etc/auto.smb <hostname>
-fstype=multiuser,cruid=$UID,sec=krb5i
...

Revision history for this message
Nish Aravamudan (nacc) wrote :

Hello,

Thank you for reporting this issue!
Where does /etc/auto.smb come from? I don't see it in a default Trusty install of samba. Please move the bug back to New once you've responded.

Changed in autofs (Ubuntu):
status: New → Incomplete
status: Incomplete → New
Revision history for this message
Nish Aravamudan (nacc) wrote :

I apologize, my search was incomplete and I do see the file after install autofs on trusty. However, afaict, there is on get_krb5_cache method at all in /etc/auto.smb in Trusty. It is there in Zesty.

Changed in autofs (Ubuntu):
status: New → Incomplete
Revision history for this message
Uli (ulrich-felzmann) wrote :

I've noticed the bug on Xenial.

Changed in autofs (Ubuntu):
status: Incomplete → New
Revision history for this message
Nish Aravamudan (nacc) wrote :

Thank you for the prompt response. I assume this is reproducible easily.

Based upon the script, it states:

"# 2) Otherwise, try to find a usable kerberos credentials cache
# for the uid of the user that was first to trigger the mount
# and use that."

I guess that this case is not supported by the script generally, as the ticket is in the keyring and not the cache. As this is explicitly listed as not supported, I think the best thing would be to report this upstream, as /etc/auto.smb comes from autofs' samples/auto.smb file.

Thanks,
Nish

Changed in autofs (Ubuntu):
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.