summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/password.c3
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) {