Skip to content

Commit

Permalink
auth: Remove support for HAVE_TRUNCATED_SALT from pass_check.c
Browse files Browse the repository at this point in the history
The comments indicate that this was needed for HP-UX at one point, but
the configure code was never ported to WAF.

Signed-off-by: Andrew Bartlett <[email protected]>
Reviewed-by: Andreas Schneider <[email protected]>

Autobuild-User(master): Andreas Schneider <[email protected]>
Autobuild-Date(master): Tue Apr 15 12:32:09 CEST 2014 on sn-devel-104
  • Loading branch information
abartlet authored and cryptomilk committed Apr 15, 2014
1 parent 634cc8f commit d7ce127
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 870 deletions.
14 changes: 0 additions & 14 deletions source3/auth/pass_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,20 +236,6 @@ NTSTATUS pass_check(const struct passwd *pass,
}
#endif

#if defined(HAVE_TRUNCATED_SALT)
/* crypt on some platforms (HPUX in particular)
won't work with more than 2 salt characters. */
{
char *trunc_salt = get_this_salt();
if (!trunc_salt || strlen(trunc_salt) < 2) {
return NT_STATUS_LOGON_FAILURE;
}
trunc_salt[2] = 0;
if (set_this_salt(trunc_salt) == NULL) {
return NT_STATUS_NO_MEMORY;
}
}
#endif

if (!get_this_crypted() || !*get_this_crypted()) {
if (!lp_null_passwords()) {
Expand Down
5 changes: 0 additions & 5 deletions source4/auth/ntlm/auth_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,11 +661,6 @@ static NTSTATUS check_unix_password(TALLOC_CTX *ctx, struct loadparm_context *lp
}
#endif

#if defined(HAVE_TRUNCATED_SALT)
/* crypt on some platforms (HPUX in particular)
won't work with more than 2 salt characters. */
salt[2] = 0;
#endif

if (crypted[0] == '\0') {
if (!lpcfg_null_passwords(lp_ctx)) {
Expand Down
Loading

0 comments on commit d7ce127

Please sign in to comment.