r21012: Patch from Danilo Almeida @ Centeris (via me):
[kai/samba.git] / source3 / nsswitch / pam_winbind.h
index e817c5a840fbdf0fb06ea605e9ca577a943e7ba3..91f662d5d0cd046b8da816b489ba6ee5c94147e7 100644 (file)
@@ -86,6 +86,7 @@ do {                             \
 #define WINBIND_CACHED_LOGIN (1<<9)
 #define WINBIND_CONFIG_FILE (1<<10)
 #define WINBIND_SILENT (1<<11)
+#define WINBIND_DEBUG_STATE (1<<12)
 
 /*
  * here is the string to inform the user that the new passwords they
@@ -164,4 +165,7 @@ do {                             \
 
 /* from include/rpc_netlogon.h */
 #define LOGON_CACHED_ACCOUNT           0x00000004
+#define LOGON_GRACE_LOGON              0x01000000
 
+#define PAM_WB_CACHED_LOGON(x) (x & LOGON_CACHED_ACCOUNT)
+#define PAM_WB_GRACE_LOGON(x)  ((LOGON_CACHED_ACCOUNT|LOGON_GRACE_LOGON) == ( x & (LOGON_CACHED_ACCOUNT|LOGON_GRACE_LOGON)))