s4:dsdb: Add function to determine whether we have system access
authorJo Sutton <josutton@catalyst.net.nz>
Tue, 13 Feb 2024 01:09:23 +0000 (14:09 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 16 Feb 2024 02:41:36 +0000 (02:41 +0000)
commit1ad9b93dbf6dd2b899bcb11c20c841735aede12f
tree4de47feb72cc255ce06312e3a7fcb6bd29101825
parente0e2126face6d0a46dff348a8c690eb943dc2930
s4:dsdb: Add function to determine whether we have system access

This takes into account the dsdb session info, as well as the presence
or absence of an AS_SYSTEM control.

Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/util.c
source4/dsdb/samdb/ldb_modules/util.h