mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
idmap_tdb: Use dom_sid_str_buf
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
263edf7fe9
commit
70b9477922
@ -63,7 +63,7 @@ static int convert_fn(struct db_record *rec, void *private_data)
|
||||
NTSTATUS status;
|
||||
struct dom_sid sid;
|
||||
uint32_t rid;
|
||||
fstring keystr;
|
||||
struct dom_sid_buf keystr;
|
||||
fstring dom_name;
|
||||
TDB_DATA key;
|
||||
TDB_DATA key2;
|
||||
@ -104,8 +104,7 @@ static int convert_fn(struct db_record *rec, void *private_data)
|
||||
|
||||
sid_compose(&sid, &domain->sid, rid);
|
||||
|
||||
sid_to_fstring(keystr, &sid);
|
||||
key2 = string_term_tdb_data(keystr);
|
||||
key2 = string_term_tdb_data(dom_sid_str_buf(&sid, &keystr));
|
||||
|
||||
value = dbwrap_record_get_value(rec);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user