diff options
author | Anatoliy Atanasov <anatoliy.atanasov@postpath.com> | 2011-01-05 16:16:59 +0200 |
---|---|---|
committer | Anatoliy Atanasov <anatoliy.atanasov@postpath.com> | 2011-01-05 16:16:59 +0200 |
commit | c9757371db2511ea4ac2f823d7ffaa92436564ed (patch) | |
tree | be0a8e9b381aee8088020fdb266e22615a4e9cb9 /source4/scripting | |
parent | 2e308975037560a7493620d9bd7dd604cff4e2a8 (diff) | |
download | samba-c9757371db2511ea4ac2f823d7ffaa92436564ed.tar.gz samba-c9757371db2511ea4ac2f823d7ffaa92436564ed.tar.bz2 samba-c9757371db2511ea4ac2f823d7ffaa92436564ed.zip |
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.
Diffstat (limited to 'source4/scripting')
-rwxr-xr-x | source4/scripting/python/samba/netcmd/ldapcmp.py | 3 |
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") |