[Samba] decode_pw_buffer: incorrect password length

Andrew Bartlett abartlet at samba.org
Mon Jun 18 09:43:31 GMT 2007

On Mon, 2007-06-18 at 10:54 +0200, alois blasbichler wrote:
> Hello list
> I have a problem that i am confronting for long time and i dont get a result.
> We use samba 3.0.24 (also tried other versions) with openldap and the  
> smbldap-tools  on Suse Linux SLES9.
> We use openldap for user authentikation for samba (objectClass:  
> sambaSamAccount) and other application like email, apache, squid  
> (objectClass: shadowAccount and objectClass: posixAccount).
> My scope is to have syncroniced the passwords and the expire-date for   
> samba- and shadow-Accounts.
> My problem: when a user changes his password from a windows-client  
> (xp) he get an error like "The User name or old password is incorrect.  
> Letters in passwords must be typed using the correct case."
> The strange is that the server *did* change both Linux and Windows
> passwords and the shadowLastChange and  sambaPwdLastSet attributes also.
> So all is ok anly i get this "stupid" message.

So, do you have a problem or not?

> In the samba-logs i see this:
> [2007/06/18 08:59:08, 0] libsmb/smbencrypt.c:decode_pw_buffer(520)
>    decode_pw_buffer: incorrect password length (-1582166334).
> [2007/06/18 08:59:08, 0] libsmb/smbencrypt.c:decode_pw_buffer(521)
>    decode_pw_buffer: check that 'encrypt passwords = yes'
> in my smb.conf i have :       unix password sync = Yes
> Is this a bug ?

These messages indicate that the old password was incorrect, and as such
we have been unable to decrypt the new one (the new password is passed
encrypted with the old one).

Andrew Bartlett

Andrew Bartlett
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Red Hat Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba/attachments/20070618/6d14ce2c/attachment.bin

More information about the samba mailing list