summaryrefslogtreecommitdiffstats
path: root/source/pam_smbpass
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-01-03 01:40:13 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-01-03 01:40:13 +0000
commitc9994ab7bb0ea96e1a2ddf78935306a7b8507f25 (patch)
tree67cc393a7976755f23f36e7147014115ed691a85 /source/pam_smbpass
parent666861b1e263370f6ba8fa4108842f52a81d8b83 (diff)
downloadsamba-c9994ab7bb0ea96e1a2ddf78935306a7b8507f25.tar.gz
samba-c9994ab7bb0ea96e1a2ddf78935306a7b8507f25.tar.xz
samba-c9994ab7bb0ea96e1a2ddf78935306a7b8507f25.zip
Merge from HEAD - remove silly 'NT or LM# as password' stuff from pam_smbpass.
Andrew Bartlett
Diffstat (limited to 'source/pam_smbpass')
-rw-r--r--source/pam_smbpass/support.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/source/pam_smbpass/support.c b/source/pam_smbpass/support.c
index a55dcb0272d..11de306d134 100644
--- a/source/pam_smbpass/support.c
+++ b/source/pam_smbpass/support.c
@@ -355,25 +355,6 @@ int _smb_verify_password( pam_handle_t * pamh, SAM_ACCOUNT *sampass,
strncpy( data_name, FAIL_PREFIX, sizeof(FAIL_PREFIX) );
strncpy( data_name + sizeof(FAIL_PREFIX) - 1, name, strlen( name ) + 1 );
- /* First we check whether we've been given the password in already
- encrypted form. */
- if (strlen( p ) == 16 || (strlen( p ) == 32
- && pdb_gethexpwd( p, (char *) hash_pass ))) {
-
- if (!memcmp( hash_pass, pdb_get_lanman_passwd(sampass), 16 )
- || (pdb_get_nt_passwd(sampass)
- && !memcmp( hash_pass, pdb_get_nt_passwd(sampass), 16 )))
- {
- retval = PAM_SUCCESS;
- if (data_name) { /* reset failures */
- pam_set_data( pamh, data_name, NULL, _cleanup_failures );
- }
- _pam_delete( data_name );
- memset( hash_pass, '\0', 16 );
- return retval;
- }
- }
-
/*
* The password we were given wasn't an encrypted password, or it
* didn't match the one we have. We encrypt the password now and try