From 272d7511cac6fac0c6176fee435a24b4a115c81d Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 25 Jul 2011 09:36:41 +0200 Subject: [PATCH] lib/hdb: add HDB_F_FOR_AS_REQ and HDB_F_FOR_TGS_REQ flags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will be used to indicate to the backend if a fetch is for an AS REQ or TGS REQ. Samba needs to take some action in the HDB_F_FOR_TGS_REQ case and always canonicalize the principal names, even without HDB_F_CANON. metze Signed-off-by: Love Hörnquist Åstrand --- lib/hdb/hdb.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/hdb/hdb.h b/lib/hdb/hdb.h index 64b52a393..75d18770f 100644 --- a/lib/hdb/hdb.h +++ b/lib/hdb/hdb.h @@ -61,6 +61,8 @@ enum hdb_lockop{ HDB_RLOCK, HDB_WLOCK }; #define HDB_F_LIVE_CLNT_KVNOS 512 /* we want all live keys for pre-auth */ #define HDB_F_LIVE_SVC_KVNOS 1024 /* we want all live keys for tix */ #define HDB_F_ALL_KVNOS 2048 /* we want all the keys, live or not */ +#define HDB_F_FOR_AS_REQ 4096 /* fetch is for a AS REQ */ +#define HDB_F_FOR_TGS_REQ 8192 /* fetch is for a TGS REQ */ /* hdb_capability_flags */ #define HDB_CAP_F_HANDLE_ENTERPRISE_PRINCIPAL 1