Replace sid_string_static by sid_string_dbg in DEBUGs
[amitay/samba.git] / source3 / passdb / passdb.c
index c4248bb48eddd8174e349b41361db4c72a069e04..9311b8a74e6a4663e7cf1926ef9d0cb393af68af 100644 (file)
@@ -595,7 +595,7 @@ bool lookup_global_sam_name(const char *name, int flags, uint32_t *rid,
                if (ret) {
                        if (!sid_check_is_in_our_domain(&user_sid)) {
                                DEBUG(0, ("User %s with invalid SID %s in passdb\n",
-                                         name, sid_string_static(&user_sid)));
+                                         name, sid_string_dbg(&user_sid)));
                                return False;
                        }
 
@@ -620,8 +620,7 @@ bool lookup_global_sam_name(const char *name, int flags, uint32_t *rid,
        /* BUILTIN groups are looked up elsewhere */
        if (!sid_check_is_in_our_domain(&map.sid)) {
                DEBUG(10, ("Found group %s (%s) not in our domain -- "
-                          "ignoring.", name,
-                          sid_string_static(&map.sid)));
+                          "ignoring.", name, sid_string_dbg(&map.sid)));
                return False;
        }