extracted the password change code from smbpasswd and used it in swat