s4-ldapcmp.py: Don't guess credentials for second Credentials object
authorKamen Mazdrashki <kamenim@samba.org>
Fri, 1 Oct 2010 00:30:50 +0000 (03:30 +0300)
committerKamen Mazdrashki <kamenim@sn-devel-104.sn.samba.org>
Sat, 2 Oct 2010 23:05:20 +0000 (23:05 +0000)
This allow us to fallback to first credentials given.

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Sat Oct  2 23:05:20 UTC 2010 on sn-devel-104

source4/scripting/devel/ldapcmp

index 58b187a039d1c896a5fa7a2b747187d1d137286f..fdb87e8d285b0d13e49382c90e72500341d06874 100755 (executable)
@@ -764,7 +764,7 @@ if __name__ == "__main__":
 
     lp = sambaopts.get_loadparm()
     creds = credopts.get_credentials(lp)
-    creds2 = credopts.get_credentials2(lp)
+    creds2 = credopts.get_credentials2(lp, False)
     if creds2.is_anonymous():
         creds2 = creds