summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd.h
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-05-06 21:04:30 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:21:49 -0500
commitc16059f1f0eab31835f577aa4985fd9d70a8982c (patch)
tree76e1241da919617cf78f45c0fa9b14d4f5dd7a54 /source3/nsswitch/winbindd.h
parentfd5ff711b6fa4b1146776ba6f915a20e64786c53 (diff)
downloadsamba-c16059f1f0eab31835f577aa4985fd9d70a8982c.tar.gz
samba-c16059f1f0eab31835f577aa4985fd9d70a8982c.tar.bz2
samba-c16059f1f0eab31835f577aa4985fd9d70a8982c.zip
r22713: Offline logon fixes for idmap manager:
(a) Ignore the negative cache when the domain is offline (b) don't delete expired entries from the cache as these can be used when offline (same model as thw wcache entries) (c) Delay idmap backend initialization when offline as the backend routines will not be called until we go online anyways. This prevents idmap_init() from failing when a backend's init() function fails becuase of lack of network connectivity (This used to be commit 4086ef15b395f1a536fb669af2103a33ecc14de4)
Diffstat (limited to 'source3/nsswitch/winbindd.h')
-rw-r--r--source3/nsswitch/winbindd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd.h b/source3/nsswitch/winbindd.h
index b316e988b8..e43cb0853a 100644
--- a/source3/nsswitch/winbindd.h
+++ b/source3/nsswitch/winbindd.h
@@ -354,4 +354,7 @@ struct winbindd_tdc_domain {
#define WINBINDD_PAM_AUTH_KRB5_RENEW_TIME 2592000 /* one month */
#define DOM_SEQUENCE_NONE ((uint32)-1)
+#define IS_DOMAIN_OFFLINE(x) ( lp_winbind_offline_logon() && \
+ ( get_global_winbindd_state_offline() \
+ || !(x)->online ) )
#endif /* _WINBINDD_H */