pdbtest: Use dom_sid_str_buf
authorVolker Lendecke <vl@samba.org>
Thu, 10 Jan 2019 20:04:33 +0000 (21:04 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 27 Feb 2019 00:35:18 +0000 (01:35 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/torture/pdbtest.c

index 64bc45e6a7c6baf261e2b4b29ccf11df031a3960..fdf72187b6ce94a72932ce13e0e588224540b3a7 100644 (file)
@@ -358,9 +358,11 @@ static bool test_auth(TALLOC_CTX *mem_ctx, struct samu *pdb_entry)
        }
 
        if (!dom_sid_equal(info3_sam->base.domain_sid, info3_auth->base.domain_sid)) {
+               struct dom_sid_buf buf1, buf2;
                DEBUG(0, ("domain_sid in SAM info3 %s does not match domain_sid in AUTH info3 %s\n", 
-                         dom_sid_string(NULL, info3_sam->base.domain_sid),
-                         dom_sid_string(NULL, info3_auth->base.domain_sid)));
+                         dom_sid_str_buf(info3_sam->base.domain_sid, &buf1),
+                         dom_sid_str_buf(info3_auth->base.domain_sid,
+                                         &buf2)));
                return False;
        }
        
@@ -429,9 +431,12 @@ static bool test_auth(TALLOC_CTX *mem_ctx, struct samu *pdb_entry)
                }
 
                if (!dom_sid_equal(info3_sam->base.domain_sid, info6_wbc->base.domain_sid)) {
+                       struct dom_sid_buf buf1, buf2;
                        DEBUG(0, ("domain_sid in SAM info3 %s does not match domain_sid in AUTH info3 %s\n",
-                                 dom_sid_string(NULL, info3_sam->base.domain_sid),
-                                 dom_sid_string(NULL, info6_wbc->base.domain_sid)));
+                                 dom_sid_str_buf(info3_sam->base.domain_sid,
+                                                 &buf1),
+                                 dom_sid_str_buf(info6_wbc->base.domain_sid,
+                                                 &buf2)));
                        return false;
                }
        }