[SMB3] fix reconnect so it can handle cases where server is doing password rotation

Steve French smfrench at gmail.com
Thu Apr 4 23:19:30 UTC 2024


There are various use cases that are becoming more common in which password
changes are scheduled on a server(s) periodically but the clients connected
to this server need to stay connected (even in the face of brief network
reconnects) due to mounts which can not be easily unmounted and mounted at
will, and servers that do password rotation do not always have the ability
to tell the clients exactly when to the new password will be effective,
so add support for an alt password ("password2=") on mount (and also
remount) so that we can anticipate the upcoming change to the server
without risking breaking existing mounts.

An alternative would have been to use the kernel keyring for this but the
processes doing the reconnect does not have access to the keyring but does
have access to the ses structure.

See attached Linux client patch
-- 
Thanks,

Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-smb3-fix-broken-reconnect-when-password-changing-on-.patch
Type: text/x-patch
Size: 7518 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20240404/9c50b2d9/0001-smb3-fix-broken-reconnect-when-password-changing-on-.bin>


More information about the samba-technical mailing list