#!/bin/bash 

$sambabin/samba-tool user setpassword "$user" --newpassword="$password"