diff options
author | Volker Lendecke <vl@samba.org> | 2018-11-02 20:58:59 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-11-09 22:42:29 +0100 |
commit | 9060b26caca327c7dc1f3b69b28a7acfcf2f7d3d (patch) | |
tree | 3bbff3b5f14647c6363b5d6fc7acb517bfa0ff4c /source3/groupdb | |
parent | 94cfb4ded18ead3035963d0a23a70a4537ebf7ba (diff) | |
download | samba-9060b26caca327c7dc1f3b69b28a7acfcf2f7d3d.tar.gz |
passdb: Use dom_sid_str_buf
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/groupdb')
-rw-r--r-- | source3/groupdb/mapping_tdb.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/source3/groupdb/mapping_tdb.c b/source3/groupdb/mapping_tdb.c index b5b11767f27..6bb8c3269b2 100644 --- a/source3/groupdb/mapping_tdb.c +++ b/source3/groupdb/mapping_tdb.c @@ -732,7 +732,7 @@ static NTSTATUS del_aliasmem(const struct dom_sid *alias, const struct dom_sid * bool found = False; char *member_string; char *key; - fstring sid_string; + struct dom_sid_buf sid_string; if (dbwrap_transaction_start(db) != 0) { DEBUG(0, ("transaction_start failed\n")); @@ -763,9 +763,11 @@ static NTSTATUS del_aliasmem(const struct dom_sid *alias, const struct dom_sid * num -= 1; - sid_to_fstring(sid_string, member); - - key = talloc_asprintf(sids, "%s%s", MEMBEROF_PREFIX, sid_string); + key = talloc_asprintf( + sids, + "%s%s", + MEMBEROF_PREFIX, + dom_sid_str_buf(member, &sid_string)); if (key == NULL) { TALLOC_FREE(sids); status = NT_STATUS_NO_MEMORY; @@ -786,10 +788,10 @@ static NTSTATUS del_aliasmem(const struct dom_sid *alias, const struct dom_sid * for (i=0; i<num; i++) { - sid_to_fstring(sid_string, &sids[i]); - member_string = talloc_asprintf_append_buffer( - member_string, " %s", sid_string); + member_string, + " %s", + dom_sid_str_buf(&sids[i], &sid_string)); if (member_string == NULL) { TALLOC_FREE(sids); |