Password synchronization

Alan Schmitz alans at
Thu May 14 23:57:22 GMT 1998

I'm trying to get Unix passwords to synchronize when users change their
passwords in Windows '95.  Samba version 1.9.18p5.  Most of the time
things work like their supposed to, but:

When a user enters a password that's "too short", Samba doesn't change
the unix password, but it does change the smbpassword.  At this point
the Unix and Windows passwords are out of sync, but the user has no way
of knowing the all of their passwords weren't updated.  

Here's an example log file:
Doing SamOEMChangePassword
get_smbpwd_entry: opening file /usr/local/samba/private/smbpasswd
get_smbpwd_entry: search by name: SCHMIA01
get_smbpwd_entry: found by name: schmia01
get_smbpwd_entry: returning passwd entry for user schmia01, uid 500
Password change for user: schmia01
Password Change: schmia01, New password is shorter than MINPASSWDLENGTH
mod_smbpwd_entry: opening file /usr/local/samba/private/smbpasswd
mod_smbpwd_entry: entry exists

Is this the way it's supposed to work?  Given the modifications I had to
make to other things to get the chat script to work, I could have messed
something else up.

If the password really is too short, I'd like to keep Samba from
changing the entry in smbpassword.  I'd also like to have it tell the
user that the new password is too short.  If there are any other tests
that Samba runs against the new password, I'd like them to be treated
the same way.  Is is possible to configure Samba to do this?


More information about the samba-technical mailing list