1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-06 08:59:08 +03:00

Revert "s4/ldapcmp: Check if creds2 is actualy set by the command line"

This reverts commit f8275bae5d.
Wrong assumption about a segmentation fault.
This commit is contained in:
Anatoliy Atanasov
2011-01-05 15:32:06 +02:00
parent 0185f660c0
commit 3f0db2e53b

View File

@ -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")