CVE-2023-0614 s4-dsdb: Add samdb_result_dom_sid_buf()
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Sun, 26 Feb 2023 23:19:08 +0000 (12:19 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 5 Apr 2023 02:10:35 +0000 (02:10 +0000)
commitda8138c50e65988d8f2e6848b479abfce8e9784b
treef35cb38dad0b50f2d251512131673b4aa67712ae
parent5c334918a22a66adc75508dd0e2be3756c350fa8
CVE-2023-0614 s4-dsdb: Add samdb_result_dom_sid_buf()

This function parses a SID from an ldb_message, similar to
samdb_result_dom_sid(), but does it without allocating anything.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15270

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/common/util.c