Closed jacobshivers closed 3 years ago
@jacobshivers Is there any difference between configuration files other than the program option ?
@simo5 No, there are no other differences for nfs-client than adding the program option. cifs-client is a near copy of nfs-client, but with a different program. This avoids having to maintain a separate socket for cifs-client, which while possible is not necessary.
Then why not simply rename the file to network-fs-clients.conf and use the same file for both cifs and nfs? It is quite likely that the default case is to have the same config for both. We can add documentation to show how to manually differentiate in the odd case someone want to actually have different options between the two?
That works for me. I defaulted to having them distinct, but like you mentioned, having appropriate documentation can assist those who either choose to have different requirements for different remote filesystems or want the separation for tracking purposes in gssproxy logs.
Ok, can you change this PR in that direction ?
I think doc can either be a change of dcos/NFS.md or a separate document for the general idea which has a section specific to NFS vs CIFS
Doesn't need to be a lot of words, just a few sentences of: "do you need diff behavior for nfs v cifs? Remove network-fs-clients.conf and replace withe these two files" (list them with the program config option) and "then customize them at will"
Yes, I will change the direction and add some suggested doc changes.
Added the changes for 99-nfs-client.conf to 99-network-fs-clients.conf and created a small md file describing how to have differentiated access for client side NFS and SMB. The only other thing I added to the new doc is a small blurb about Resource Based Constrained Delegation as some users may use that in their environment. Simply noted that as RBCD is a server side change, there are no additional steps required for gssproxy to use RBCD over CD.
LGTM, can you squash all commits and add Sign-by line? (git commit -s)
@jacobshivers CI is not happy, seem like you missed to change Makefile.am, and you should probably also fix contrib/gssproxy.spec.in
I'll make those fixes
Made the requested fixes. I did not modify the line after %changelog in contrib/gssproxy.spec.in as I did not think I that was intended for me.
Squashed everything into one commit as it makes more sense to keep everything together.
LGTM
Proposed patches for cifs.upcall extending the binary to leverage gssapi have been slated for inclusion into cifs-utils. A drop file for gssproxy is needed to go along with the patch. The drop file is a near match for nfs-client with the difference in the "program" option. Both cifs-client and nfs-client can use the same default socket, but the configuration files need to be distinguished otherwise gssproxy will not start.
Proposing "cifs-client" drop file to go along with patches and modifying the existing "nfs-client" drop file so that it can continue to work.
Link for cifs.upcall patch as discussed above: https://github.com/piastry/cifs-utils/commit/3d681bb5c140376ccc19e48711231aeef1e87aa9