From 338d08f69b0eeefa0f3f2c0217ef17ea3e815e1f Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Thu, 2 Dec 1999 01:16:05 +0000 Subject: clearing up connection-related stuff. password credentials were messing up. added a complicated prompt which i don't like, but it tells you domain\user@hostname$ --- source/libsmb/pwd_cache.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'source/libsmb/pwd_cache.c') diff --git a/source/libsmb/pwd_cache.c b/source/libsmb/pwd_cache.c index 9680349a86e..548777d434d 100644 --- a/source/libsmb/pwd_cache.c +++ b/source/libsmb/pwd_cache.c @@ -85,16 +85,8 @@ BOOL pwd_compare(struct pwd_info *pwd1, struct pwd_info *pwd2) pwd_obfuscate(pwd2); return True; } - if (pwd1->crypted || pwd2->crypted) - { - DEBUG(5,("pwd_compare: cannot compare crypted passwords\n")); - pwd_obfuscate(pwd1); - pwd_obfuscate(pwd2); - return False; - } - if (!pwd1->crypted && !pwd2->crypted && - !pwd1->null_pwd && !pwd2->null_pwd && + if (!pwd1->null_pwd && !pwd2->null_pwd && !pwd1->cleartext && !pwd2->cleartext) { if (memcmp(pwd1->smb_nt_pwd, pwd2->smb_nt_pwd, 16) == 0) -- cgit