[WIP PATCH] allow changing the password on remount in some cases

Steve French smfrench at gmail.com
Tue Feb 13 06:53:19 UTC 2024


cifs: Work-in-progress patch to allow changing password
 during remount

There are cases where a session is disconnected but we can
not reconnect successfully since the user's password has changed
on the server (or expired) and this case currently can not be fixed
without unmount and mounting again which is not always realistic to do.
This patch allows remount to change the password when the session
is disconnected.

This patch needs to be tested for cases where you have multiuser mounts
and to make sure that there are no cases where we are changing
passwords for a different user than the one for the master tcon's
session (cifs_sb->tcon->ses->username)

Future patches should also allow us to setup the keyring (cifscreds)
to have an "alternate password" so we would be able to change
the password before the session drops (without the risk of races
between when the password changes and the disconnect occurs -
ie cases where the old password is still needed because the new
password has not fully rolled out to all servers yet).

See attached patch


-- 
Thanks,

Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-cifs-Work-in-progress-patch-to-allow-changing-passwo.patch
Type: text/x-patch
Size: 3579 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20240213/2ede7fa7/0001-cifs-Work-in-progress-patch-to-allow-changing-passwo.bin>


More information about the samba-technical mailing list