s3-net_rpc: Use security_token_initialise() to create struct security_token
authorAndrew Bartlett <abartlet@samba.org>
Tue, 26 Sep 2023 19:39:04 +0000 (08:39 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 26 Sep 2023 23:45:35 +0000 (23:45 +0000)
commita8210ab1ae4639723b666c494c17a59bc8fe601f
tree28ab6f341aa4b6263fe993dd81a9ed3a53c76a82
parente2cc29d132b9f99417e8a522c97571438ca51e5a
s3-net_rpc: Use security_token_initialise() to create struct security_token

This ensures that the full structure is initialised now and in the
future.

Because this is now a talloc based structure, we can now use
add_sid_to_array_unique() rather than a reimplementation in this file.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source3/utils/net_rpc.c