s4:kdc: Use HDB flag constants instead of SDB ones
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 17 Oct 2023 07:18:12 +0000 (20:18 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 19 Oct 2023 21:37:36 +0000 (21:37 +0000)
These flags are passed to us by Heimdal, and so they are HDB flags, not
SDB flags.

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

index 7d80358c8897b7fa05f1441e238767b4840abeb0..92e9e609196353bcccfd9ba61fd97de7f6e1fe43 100644 (file)
@@ -215,7 +215,7 @@ static krb5_error_code hdb_samba4_kpasswd_fetch_kvno(krb5_context context, HDB *
        flags &= ~HDB_F_KVNO_SPECIFIED;
 
        /* Don't bother looking up a client or krbtgt. */
-       flags &= ~(SDB_F_GET_CLIENT|SDB_F_GET_KRBTGT);
+       flags &= ~(HDB_F_GET_CLIENT|HDB_F_GET_KRBTGT);
 
        ret = hdb_samba4_fetch_kvno(context, db,
                                    kpasswd_principal,