mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +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:
@ -774,6 +774,9 @@ class cmd_ldapcmp(Command):
|
|||||||
creds2 = credopts.get_credentials2(lp, False)
|
creds2 = credopts.get_credentials2(lp, False)
|
||||||
if creds2.is_anonymous():
|
if creds2.is_anonymous():
|
||||||
creds2 = creds
|
creds2 = creds
|
||||||
|
else:
|
||||||
|
creds2.set_domain("")
|
||||||
|
creds2.set_workstation("")
|
||||||
if not creds.authentication_requested():
|
if not creds.authentication_requested():
|
||||||
raise CommandError("You must supply at least one username/password pair")
|
raise CommandError("You must supply at least one username/password pair")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user