I recently upgraded my server to the “current” version of Slackware. Before doing so I rsynced every OS directory to a directory on another mounted disk so I would have access to any and all configuration files after the install to avoid “reinventing the wheel”. Everything went well using the past configuration files either directly or as models except for Samba. The problem however is not with the shares the Windows PCs access. They all worked fine right from the start.
The problem is with a couple Toshiba security cameras that access the server using a Samba share for continuous direct storage. The version of Samba based on the file date of the smbd binary file I found in the backup directory indicates the old version is version 4.1.6. The current Samba install is version 4.6.5. The last two lines of the log after a failed connection attempt by the cameras indicate that the share is not working for the following reason
Code:
../source3/auth/auth.c:315(auth_check_ntlm_password)
Code:
check_ntlm_password: Authentication for user [user] -> [user] FAILED with error NT_STATUS_WRONG_PASSWORD
I made sure the password was correct but it didn’t help. I even used smbpasswd with the add user option (-a) to verify the password since research indicated that worked for someone who was having trouble with password failure.
After doing additional research it appeared the cure was going to be adding the line
Code:
client use spnego = no
high up in the global section of the smb.conf file.
When that didn’t work more Google searches indicated that adding
in the share configuration section might help. No such luck.
Finally, based on another reference I added the following to the smb.conf file in the global section
Code:
client ntlmv2 auth = no
I had great hopes for this since “ntlm” was in the error message but it didn’t help. I am still receiving the same error message in the log.
The pertinent area of my smb.conf files now reads is a follows
Code:
[global]
client use spnego = no
client ntlmv2 auth = no
lanman auth = yes
client lanman auth = yes
client plaintext auth = yes
It was working fine with just the last three lines prior to the change in versions. Anyone have some fresh ideas of what to try next. The court of last resort is reinstalling Samba 4.1.6 in the hope that cures the problem but given a choice I would like to make the new version work.
While I am waiting I will keep looking and trying things. Being persistent can often make up for not being good.