Hi there
i have a very strange issue:
%n is empty, for sure.


ldap passwd sync = No
unix password sync = Yes
passwd program = /usr/bin/php -f /etc/samba/scripts/chgpwd.php %u %n
passwd chat debug = yes

this small php script does log:

Apr 29 11:19:13 pdc myScriptLog[29555]: change password: prova - %n

if i use smbldap-passwd

; passwd program = /usr/bin/php -f /etc/samba/scripts/chgpwd.php %u %n
passwd program = /usr/sbin/smbldap-passwd -u %u
passwd chat = "New password:" %n\\n "Retype new password:" %n\\n "changed"
passwd chat debug = yes

i added some logging to it:
/var/log/perl.log
Apr 29 11:20:31 pdc smbldap-passwd[29615]: Changing UNIX passwords for prova
Apr 29 11:20:34 pdc smbldap-passwd[29617]: starting
Apr 29 11:20:34 pdc smbldap-passwd[29617]: changing password for prova
Apr 29 11:20:34 pdc smbldap-passwd[29617]: Changing UNIX passwords for prova
Apr 29 11:20:36 pdc smbldap-passwd[29619]: starting
Apr 29 11:20:36 pdc smbldap-passwd[29619]: changing password for prova
Apr 29 11:20:36 pdc smbldap-passwd[29619]: Changing UNIX passwords for prova
Apr 29 11:20:38 pdc smbldap-passwd[29621]: starting
Apr 29 11:20:38 pdc smbldap-passwd[29621]: changing password for prova
Apr 29 11:20:38 pdc smbldap-passwd[29621]: Changing UNIX passwords for prova

/var/log/messages:
Apr 29 11:20:17 pdc smbd[592]: [2008/04/29 11:20:17, 0] libsmb/smbencrypt.c:decode_pw_buffer(552)
Apr 29 11:20:17 pdc smbd[592]: decode_pw_buffer: incorrect password length (-278203093).
Apr 29 11:20:17 pdc smbd[592]: [2008/04/29 11:20:17, 0] libsmb/smbencrypt.c:decode_pw_buffer(553)
Apr 29 11:20:17 pdc smbd[592]: decode_pw_buffer: check that 'encrypt passwords = yes'


as far as i can see, smbldap-passwd does not receive %n and ask it more and more 3 times.

Why is it not receiving new password by windows client?
any advise would be apreciated

Maurizio
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba