diff options
author | Andrew Tridgell <tridge@samba.org> | 1997-10-15 04:04:38 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1997-10-15 04:04:38 +0000 |
commit | 91e56c7b7b5b1a72dc00b468204c007820d3460e (patch) | |
tree | 2579b45fcfab74beeedacd7902bfc80ea3c987ff /source3 | |
parent | 4a9e9a40dc4a3c2c8046ac284bf61a6b0f932e6b (diff) | |
download | samba-91e56c7b7b5b1a72dc00b468204c007820d3460e.tar.gz samba-91e56c7b7b5b1a72dc00b468204c007820d3460e.tar.bz2 samba-91e56c7b7b5b1a72dc00b468204c007820d3460e.zip |
force the salt to be a maximum of 2 characters long in calls
to crypt()
This might solve some password problems, particulary on HPUX
(This used to be commit 45f4ae4327a8836cad22bbf64f1effba6a6eb7f5)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/password.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c index af9be289c7..1b1bd34bcc 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -1047,6 +1047,7 @@ BOOL password_ok(char *user,char *password, int pwlen, struct passwd *pwd) /* extract relevant info */ strcpy(this_user,pass->pw_name); strcpy(this_salt,pass->pw_passwd); + this_salt[2] = 0; strcpy(this_crypted,pass->pw_passwd); if (!*this_crypted) { |