pam_winbind: remove NETLOGON_CACHED_ACCOUNT and NETLOGON_GRACE_LOGON.
authorGünther Deschner <gd@samba.org>
Tue, 19 Aug 2008 12:51:31 +0000 (14:51 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 10 Oct 2008 13:42:09 +0000 (15:42 +0200)
Guenther

source3/nsswitch/pam_winbind.h

index 1b1d646643d1b9bad855f1cf85c4d7c41ff377ff..670120afdec92cea2cb016d05007a601e8fbf59e 100644 (file)
@@ -182,16 +182,11 @@ do {                             \
        };\
 };
 
-/* from netlogon.idl */
-#define NETLOGON_CACHED_ACCOUNT                0x00000004
-#define NETLOGON_GRACE_LOGON           0x01000000
-
-/* from include/rpc_netlogon.h */
 #define LOGON_KRB5_FAIL_CLOCK_SKEW     0x02000000
 
-#define PAM_WB_CACHED_LOGON(x) (x & NETLOGON_CACHED_ACCOUNT)
+#define PAM_WB_CACHED_LOGON(x) (x & WBC_AUTH_USER_INFO_CACHED_ACCOUNT)
 #define PAM_WB_KRB5_CLOCK_SKEW(x) (x & LOGON_KRB5_FAIL_CLOCK_SKEW)
-#define PAM_WB_GRACE_LOGON(x)  ((NETLOGON_CACHED_ACCOUNT|NETLOGON_GRACE_LOGON) == ( x & (NETLOGON_CACHED_ACCOUNT|NETLOGON_GRACE_LOGON)))
+#define PAM_WB_GRACE_LOGON(x)  ((WBC_AUTH_USER_INFO_CACHED_ACCOUNT|WBC_AUTH_USER_INFO_GRACE_LOGON) == ( x & (WBC_AUTH_USER_INFO_CACHED_ACCOUNT|WBC_AUTH_USER_INFO_GRACE_LOGON)))
 
 struct pwb_context {
        pam_handle_t *pamh;