1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

s4/ldapcmp: Correct fix for creds2

We need to set domain and workstation to creds2 otherwise we get Segfault
because they are not initialized correctly.
This commit is contained in:
Anatoliy Atanasov 2011-01-05 16:16:59 +02:00
parent 2e30897503
commit c9757371db

View File

@ -774,6 +774,9 @@ class cmd_ldapcmp(Command):
creds2 = credopts.get_credentials2(lp, False)
if creds2.is_anonymous():
creds2 = creds
else:
creds2.set_domain("")
creds2.set_workstation("")
if not creds.authentication_requested():
raise CommandError("You must supply at least one username/password pair")