/usr/sbin/cifs.upcall is the request-key help program used to obtain certain data like kerberos keys or results of dns calls from userland processes.
It is sometimes necessary to debug the execution of this helper function for which I use the following methods.
1) Capture debug messages from cifs.upcall.
Edit /etc/rsyslog.conf and add the line
Restart rsyslog service and confirm that the log file /var/log/debug has been created which will log all messages.
Attempt the call which will usually be the call to mount the cifs share. You should see the debug messages from cifs.upcall in /var/log/debug.
2) Strace cifs.upcall calls.
First move the original cifs.upcall file
# cd /usr/sbin; mv cifs.upcall cifs.upcall.orig
Create a new text file cifs.upcall with the following content.
echo $@ >> /tmp/upcall.log
strace -fxvto /tmp/cifs.upcall.st -s1000 /usr/sbin/cifs.upcall.orig $@
Make sure this is an executable
# chmod +x cifs.upcall
Now attempt the mount process. You will see the strace output in /tmp/cifs.upcall.st.
I have been investigating the Samba code as part of my task to implement oplock break retry code for a multichannel setup. This is a small e...
/usr/sbin/cifs.upcall is the request-key help program used to obtain certain data like kerberos keys or results of dns calls from userland p...
The investigation is driven by a user request to reduce the time spent by the client waiting for a request to an unresponsive server. The ...
We first setup winbind: Make sure you have the following packages installed: samba-winbind : Provides the winbindd daemon required. ...