diff options
author | Jeremy Allison <jra@samba.org> | 1998-01-23 13:52:45 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-01-23 13:52:45 +0000 |
commit | 0cf19efb8561647f032ee4447b3e41443328ab76 (patch) | |
tree | a0a318703aa8a4a6ccc99c90b1b0804bfb7466f7 | |
parent | d1abadb4951457ce7a96fcda00c3511d25e1b8cb (diff) | |
download | samba-0cf19efb8561647f032ee4447b3e41443328ab76.tar.gz |
Changed code that truncates salt after 2 characters so that it becomes
HPUX specific. This fixes a bug with FreeBSD md5 crypt implementation
that needs all of the password characters.
It seems better to make this an HPUX specific thing.
Jeremy.
-rw-r--r-- | source/smbd/password.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/smbd/password.c b/source/smbd/password.c index 567b8f54f2e..0f8705d4be3 100644 --- a/source/smbd/password.c +++ b/source/smbd/password.c @@ -1023,7 +1023,10 @@ 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); +#ifdef HPUX + /* The crypt on HPUX won't work with more than 2 salt characters. */ this_salt[2] = 0; +#endif /* HPUX */ strcpy(this_crypted,pass->pw_passwd); if (!*this_crypted) { |