diff options
author | Jeremy Allison <jra@samba.org> | 1998-01-23 13:52:17 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-01-23 13:52:17 +0000 |
commit | a215c98602c0849819a50de6b13f8c41824ef08a (patch) | |
tree | d9f51ed6b2dec00a32508a795c0f70cec657cf6a /source3/smbd | |
parent | 46c795da5d8b7d46e0e2806b86c97a3e2b34be26 (diff) | |
download | samba-a215c98602c0849819a50de6b13f8c41824ef08a.tar.gz samba-a215c98602c0849819a50de6b13f8c41824ef08a.tar.bz2 samba-a215c98602c0849819a50de6b13f8c41824ef08a.zip |
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.
(This used to be commit 91a2b746d3fac261d4be3bd7afa3d5bb601b3d27)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/password.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c index 567b8f54f2..0f8705d4be 100644 --- a/source3/smbd/password.c +++ b/source3/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) { |