WARNING: Using password on command line is insecure. Please install the setproctitle python module.
ERROR: Failed to change password : (-1073741772, "Connection to SAMR pipe of PDC of domain 'WORKGROUP' failed: NT_STATUS_OBJECT_NAME_NOT_FOUND")
And it does not depend on the metacharacters.
The same error message occurred when I did get rid of the metacharacters.
root@mantic-samba-tool:~# samba-tool user password --username=Michal --password='123' --newpassword=1234bdt7q6q7wq
WARNING: Using password on command line is insecure. Please install the setproctitle python module.
ERROR: Failed to change password : (-1073741772, "Connection to SAMR pipe of PDC of domain 'WORKGROUP' failed: NT_STATUS_OBJECT_NAME_NOT_FOUND")
I tried to reproduce the issue with the steps you provided.
$ sudo apt install samba-common-bin 1234bdt7q6q7wq
$ samba-tool user password --username=Michal --password='123&!(' --newpassword=
The error message is a bit different:
WARNING: Using password on command line is insecure. Please install the setproctitle python module. OBJECT_ NAME_NOT_ FOUND")
ERROR: Failed to change password : (-1073741772, "Connection to SAMR pipe of PDC of domain 'WORKGROUP' failed: NT_STATUS_
And it does not depend on the metacharacters.
The same error message occurred when I did get rid of the metacharacters.
root@mantic- samba-tool: ~# samba-tool user password --username=Michal --password='123' --newpassword= 1234bdt7q6q7wq OBJECT_ NAME_NOT_ FOUND")
WARNING: Using password on command line is insecure. Please install the setproctitle python module.
ERROR: Failed to change password : (-1073741772, "Connection to SAMR pipe of PDC of domain 'WORKGROUP' failed: NT_STATUS_