Put smb-name in front of the local user when changed the password via smbpasswd, so that the local unix user will not be regarded as ad user and fail to smbpasswd.
Created attachment 4380 [details]
The diff file for smbpasswd
Can you add a check if the user has already typed in the correctly qualified name?
Created attachment 4398 [details]
The updated diff for util/smbpasswd.c
Hi, I add a check for whether the username contains '\', and then update the name accordingly. If this is not what you want, please tell me to update it.