From 3f0db2e53bf0f30bf1e10b19d1493f3f94ec7433 Mon Sep 17 00:00:00 2001 From: Anatoliy Atanasov Date: Wed, 5 Jan 2011 15:32:06 +0200 Subject: Revert "s4/ldapcmp: Check if creds2 is actualy set by the command line" This reverts commit f8275bae5d7b471967be7222170d049c18b8882f. Wrong assumption about a segmentation fault. --- source4/scripting/python/samba/netcmd/ldapcmp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/scripting/python') diff --git a/source4/scripting/python/samba/netcmd/ldapcmp.py b/source4/scripting/python/samba/netcmd/ldapcmp.py index 76f7d95756..1ecbda73a9 100755 --- a/source4/scripting/python/samba/netcmd/ldapcmp.py +++ b/source4/scripting/python/samba/netcmd/ldapcmp.py @@ -772,7 +772,7 @@ class cmd_ldapcmp(Command): lp = sambaopts.get_loadparm() creds = credopts.get_credentials(lp, fallback_machine=True) creds2 = credopts.get_credentials2(lp) - if credopts.no_pass2: + if creds2.is_anonymous(): creds2 = creds if not creds.authentication_requested(): raise CommandError("You must supply at least one username/password pair") -- cgit