s4:kdc: Translate HDB flags to SDB flags
authorAndreas Schneider <asn@samba.org>
Wed, 26 Jan 2022 07:44:13 +0000 (08:44 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 28 Jan 2022 13:33:22 +0000 (13:33 +0000)
commit6063e8016fccbefd1c3fe378e3807c77bc04e4ec
treee3c76aaca70072d584cd0c686a39f9f90f04a9e7
parent2a0d6c11330c40f5692dc07ed6482c7107035bd4
s4:kdc: Translate HDB flags to SDB flags

We used to have a 1 to 1 mapping, but now we have
a conflict with these:

 #define SDB_F_FORCE_CANON 16384
 #define HDB_F_PRECHECK    16384

We currently don't really care about HDB_F_PRECHECK,
so we can just filter it out.

In the long run we may change the SDB flags space to uint64...

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Fri Jan 28 13:33:22 UTC 2022 on sn-devel-184
source4/kdc/hdb-samba4.c