summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-12-02 01:16:05 +0000
committerLuke Leighton <lkcl@samba.org>1999-12-02 01:16:05 +0000
commitbd4bea62ada937c58d38f6bf7af88c4cfb4115cc (patch)
treeff1ca74a615ddf8c5915e3367cdf9a8d5bdf5dd4 /source3/libsmb
parenta2e135d1954622bcdfa24304f97e224ae32c6412 (diff)
downloadsamba-bd4bea62ada937c58d38f6bf7af88c4cfb4115cc.tar.gz
samba-bd4bea62ada937c58d38f6bf7af88c4cfb4115cc.tar.bz2
samba-bd4bea62ada937c58d38f6bf7af88c4cfb4115cc.zip
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$ (This used to be commit 338d08f69b0eeefa0f3f2c0217ef17ea3e815e1f)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/pwd_cache.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/source3/libsmb/pwd_cache.c b/source3/libsmb/pwd_cache.c
index 9680349a86..548777d434 100644
--- a/source3/libsmb/pwd_cache.c
+++ b/source3/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)