diff options
author | Anatoliy Atanasov <anatoliy.atanasov@postpath.com> | 2011-01-05 15:32:06 +0200 |
---|---|---|
committer | Anatoliy Atanasov <anatoliy.atanasov@postpath.com> | 2011-01-05 16:14:14 +0200 |
commit | 3f0db2e53bf0f30bf1e10b19d1493f3f94ec7433 (patch) | |
tree | 6ea9c21e458c13a331fdeb448fcad2d8e1d9d70d /source4/scripting/python | |
parent | 0185f660c0557e716fd7491b6095349e1323c8a8 (diff) | |
download | samba-3f0db2e53bf0f30bf1e10b19d1493f3f94ec7433.tar.gz samba-3f0db2e53bf0f30bf1e10b19d1493f3f94ec7433.tar.bz2 samba-3f0db2e53bf0f30bf1e10b19d1493f3f94ec7433.zip |
Revert "s4/ldapcmp: Check if creds2 is actualy set by the command line"
This reverts commit f8275bae5d7b471967be7222170d049c18b8882f.
Wrong assumption about a segmentation fault.
Diffstat (limited to 'source4/scripting/python')
-rwxr-xr-x | source4/scripting/python/samba/netcmd/ldapcmp.py | 2 |
1 files changed, 1 insertions, 1 deletions
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") |