Oh I forgot the following:
to change a Users password via PHP,
you can use the following (under Linux with installed Samba):
exec('echo -e "'.$oldpassword.'\n'.$newpassword.'\n'.$newpassword.'
"|smbpasswd -U'.$user.' -s')
The exec-command returns ""
if an error occured (then see the error_log of the web-server)
or a message "The password has been changed".
Good luck.
Baumg?rtner