The branch, master has been updated
       via  c975737 s4/ldapcmp: Correct fix for creds2
      from  2e30897 Revert "s4/ldapcmp: Fix the parsing of the second set of 
credentials"

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit c9757371db2511ea4ac2f823d7ffaa92436564ed
Author: Anatoliy Atanasov <[email protected]>
Date:   Wed Jan 5 16:16:59 2011 +0200

    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.

-----------------------------------------------------------------------

Summary of changes:
 source4/scripting/python/samba/netcmd/ldapcmp.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/scripting/python/samba/netcmd/ldapcmp.py 
b/source4/scripting/python/samba/netcmd/ldapcmp.py
index 1318457..7816fce 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")
 


-- 
Samba Shared Repository

Reply via email to