From c9757371db2511ea4ac2f823d7ffaa92436564ed Mon Sep 17 00:00:00 2001 From: Anatoliy Atanasov Date: Wed, 5 Jan 2011 16:16:59 +0200 Subject: 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. --- source4/scripting/python/samba/netcmd/ldapcmp.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4/scripting/python') 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") -- cgit