summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsource4/scripting/python/samba/netcmd/ldapcmp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/netcmd/ldapcmp.py b/source4/scripting/python/samba/netcmd/ldapcmp.py
index 1318457a80..7816fce4d8 100755
--- a/source4/scripting/python/samba/netcmd/ldapcmp.py
+++ b/source4/scripting/python/samba/netcmd/ldapcmp.py
@@ -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")