for changing the administrator password with the command
sudo samba-tool user setpassword administrator
shows the following errors
" ldb: unable to stat module /usr/lib/x86_64-linux-gnu/samba/ldb : No such file or directory
ERROR: Failed to set password for user 'administrator': (34, "ldb_search: invalid basedn '(null)'") "