summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-10-15 04:04:38 +0000
committerAndrew Tridgell <tridge@samba.org>1997-10-15 04:04:38 +0000
commit45f4ae4327a8836cad22bbf64f1effba6a6eb7f5 (patch)
tree0ac5796ee1167a4b8120a1291fe9e3425eb28815 /source
parent2181d929d1757aa523e7afaf0e8c232a51e68d30 (diff)
downloadsamba-45f4ae4327a8836cad22bbf64f1effba6a6eb7f5.tar.gz
samba-45f4ae4327a8836cad22bbf64f1effba6a6eb7f5.tar.xz
samba-45f4ae4327a8836cad22bbf64f1effba6a6eb7f5.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
Diffstat (limited to 'source')
-rw-r--r--source/smbd/password.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/smbd/password.c b/source/smbd/password.c
index af9be289c7d..1b1bd34bcca 100644
--- a/source/smbd/password.c
+++ b/source/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) {