SMB won’t work if I use the option of “Log-in credentials,saved in session”

SMB works only if I use Username and Password. The other options such as Log-in credentials,saved in session or database fails. I need to use Log-in credentials when connecting to SMB. Can you help please?

After I set my nextcloud admin account as local administrator on the file server, I managed to add Log-in credentials,saved in session option on SMB settings. Now I can see SMB disk listed when I log in to nextcloud but if I click on it it says something like “server returned an empty message, Do you want to review mount config…”