summaryrefslogtreecommitdiff
path: root/source3/passdb/pdb_interface.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-12-11 16:09:41 +0100
committerAndrew Bartlett <abartlet@samba.org>2018-12-20 23:40:24 +0100
commit6438819609d1373da54a4efd4346fcd49ab91ff4 (patch)
tree2007f5f7cf2184da37a9ae5d2b5738ed5b6f218e /source3/passdb/pdb_interface.c
parent09efea3cb6395c99a8818ff75837e556e6fc8fa4 (diff)
downloadsamba-6438819609d1373da54a4efd4346fcd49ab91ff4.tar.gz
passdb: Use dom_sid_str_buf
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'source3/passdb/pdb_interface.c')
-rw-r--r--source3/passdb/pdb_interface.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c
index 78ff2daafaf..d42d5e52932 100644
--- a/source3/passdb/pdb_interface.c
+++ b/source3/passdb/pdb_interface.c
@@ -1497,6 +1497,8 @@ static bool pdb_default_sid_to_id(struct pdb_methods *methods,
TALLOC_CTX *mem_ctx;
bool ret = False;
uint32_t rid;
+ struct dom_sid_buf buf;
+
id->id = -1;
mem_ctx = talloc_new(NULL);
@@ -1529,13 +1531,14 @@ static bool pdb_default_sid_to_id(struct pdb_methods *methods,
"an object exists in the database, "
"but it is neither a user nor a "
"group (got type %d).\n",
- sid_string_dbg(sid), type));
+ dom_sid_str_buf(sid, &buf),
+ type));
ret = false;
}
} else {
DEBUG(5, ("SID %s belongs to our domain, but there is "
"no corresponding object in the database.\n",
- sid_string_dbg(sid)));
+ dom_sid_str_buf(sid, &buf)));
}
goto done;
}
@@ -1563,13 +1566,14 @@ static bool pdb_default_sid_to_id(struct pdb_methods *methods,
if (!NT_STATUS_IS_OK(methods->getgrsid(methods, map, *sid))) {
DEBUG(10, ("Could not find map for sid %s\n",
- sid_string_dbg(sid)));
+ dom_sid_str_buf(sid, &buf)));
goto done;
}
if ((map->sid_name_use != SID_NAME_ALIAS) &&
(map->sid_name_use != SID_NAME_WKN_GRP)) {
DEBUG(10, ("Map for sid %s is a %s, expected an "
- "alias\n", sid_string_dbg(sid),
+ "alias\n",
+ dom_sid_str_buf(sid, &buf),
sid_type_lookup(map->sid_name_use)));
goto done;
}
@@ -1581,7 +1585,7 @@ static bool pdb_default_sid_to_id(struct pdb_methods *methods,
}
DEBUG(5, ("Sid %s is neither ours, a Unix SID, nor builtin\n",
- sid_string_dbg(sid)));
+ dom_sid_str_buf(sid, &buf)));
done: