Skip to contentSkip to conversation

cifs.upcall -c documentation confusion

DISCUSSION steve 2 participants 2 messages Jun 14, 2013 – Jun 19, 2013 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

steve

author
#0 lore raw

openSUSE 12.3, samba 4.0 DC, cifs-utils 6.0

Hi
openSUSE and Ubuntu come with this line as default in /etc/request-key.conf
create cifs.spnego * * /usr/sbin/cifs.upcall -c %k

man cifs.upcall gives:
OPTIONS
-c
This option is deprecated and is currently ignored.

To get cifs.upcall to work, I must specify a key at mount time. This key has to be present in /etc/krb5.keytab.

Jeff Layton has just given me a patch which allows e.g.:
create cifs.spnego * * /usr/sbin/cifs.upcall -d /etc/cifs.keytab %k

Question:
What key does cifs.upcall look for if there is no username= parameter for mount.cifs?

Should I remove the -c? (nothing is mounted if it is present).

syslog errors:
cifs.upcall checks the cache's and if it finds none always gives:
failed to obtain service ticket
even though it just created a cache by looking in the keytab and did the mount
Could the error be sent _after_ request-key.conf has been consulted?

Thanks,
Steve

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 15 lines · On Fri, 14 Jun 2013 17:10:19 +0200 steve…

openSUSE 12.3, samba 4.0 DC, cifs-utils 6.0

Hi
openSUSE and Ubuntu come with this line as default in /etc/request-key.conf
create cifs.spnego * * /usr/sbin/cifs.upcall -c %k

man cifs.upcall gives:
OPTIONS
-c
This option is deprecated and is currently ignored.

To get cifs.upcall to work, I must specify a key at mount time. This key has to be present in /etc/krb5.keytab.

Quoted 8 lines

Jeff Layton has just given me a patch which allows e.g.:
create cifs.spnego * * /usr/sbin/cifs.upcall -d /etc/cifs.keytab %k

Question:
What key does cifs.upcall look for if there is no username= parameter for mount.cifs?

mount.cifs always passes a username to the kernel. If you don't specify one, it determines it based on the user running the mount.cifs. Most likely, it's passing in "username=root" in your case.

Quoted 2 lines

Should I remove the -c? (nothing is mounted if it is present).

It shouldn't matter either way. The "-c" option is ignored.

Quoted 7 lines

syslog errors:
cifs.upcall checks the cache's and if it finds none always gives:
failed to obtain service ticket
even though it just created a cache by looking in the keytab and did the mount
Could the error be sent _after_ request-key.conf has been consulted?

request-key.conf isn't consulted by the program itself. It tells request-key which program to run and how to run it in order to handle a keys API upcall.

handle_krb5_mech can get called multiple times if the initial attempts to get a service ticket for a particular hostname fail. It's true that that error gets logged on each attempt, but it's being logged at LOG_DEBUG level. I'd be hesitant to remove it since those errors tell you something if you're trying to track down problems in this code.

If you're concerned about those messages, then you may want to turn down the daemon facility loglevel in syslog.

Signature · 1 line
Jeff Layton <[email protected]>