When the mongodows client accesses the Samba server, a common phenomenon is that after a connection to the Samba server is established, the authentication dialog box is no longer displayed when the server is accessed again, in this way, the user identity cannot be changed. The reason for this is that the mechanism problem of Windows itself is more specifically a problem with the SMB service. Because the NETBIOS service is connection-oriented, after the customer establishes a connection with the Samba server, this connection is always active for a period of time. Therefore, when a user accesses the server again, the user uses the previous identity without further authentication.
Solution:
Net use \ 192.168.1.102 \ IPC $/delete the last connection.
After the shared connection is successfully deleted, you can change the user identity to access the Samba server.
This article is from the "Technical Achievement dream" blog. For more information, contact the author!