I believe you don't need a working setup of Samba
configured as an Active Directory Domain Controller
to reproduce the issue, because the error occurs
at command line arguments parse time.
Please follow this test case to reproduce the bug.
[Test Case]
1. Install the package owning the file samba-tool
$ sudo apt install samba-common-bin
2. Run the following command
$ samba-tool user password --username=Michal --password='123&!(' --newpassword=1234bdt7q6q7wq
I believe you don't need a working setup of Samba
configured as an Active Directory Domain Controller
to reproduce the issue, because the error occurs
at command line arguments parse time.
Please follow this test case to reproduce the bug.
[Test Case]
1. Install the package owning the file samba-tool
$ sudo apt install samba-common-bin
2. Run the following command 1234bdt7q6q7wq
$ samba-tool user password --username=Michal --password='123&!(' --newpassword=