summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-11-30 00:09:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:15 -0500
commit270e84db6de66b4f20dc0a564f706dae4c00b0b2 (patch)
tree55f1799e18de6ad93aeea9f59576c7dd71b8cd96
parent8eb53f74e414483afde7b1e38ea2a3f56ae3ec66 (diff)
downloadsamba-270e84db6de66b4f20dc0a564f706dae4c00b0b2.tar.gz
samba-270e84db6de66b4f20dc0a564f706dae4c00b0b2.tar.xz
samba-270e84db6de66b4f20dc0a564f706dae4c00b0b2.zip
r19958: Add check for WINBIND_OFFLINE key.
Jeremy.
-rw-r--r--source/nsswitch/winbindd.c6
-rw-r--r--source/nsswitch/winbindd_cache.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/source/nsswitch/winbindd.c b/source/nsswitch/winbindd.c
index 41662900ce7..047b6c3b854 100644
--- a/source/nsswitch/winbindd.c
+++ b/source/nsswitch/winbindd.c
@@ -1022,6 +1022,9 @@ int main(int argc, char **argv, char **envp)
pidfile_create("winbindd");
+ /* Ensure all cache and idmap caches are consistent
+ before we startup. */
+
if (winbindd_validate_cache()) {
/* We have a bad cache, but luckily we
just deleted it. Restart ourselves */
@@ -1051,9 +1054,6 @@ int main(int argc, char **argv, char **envp)
exit(1);
}
- /* Ensure all cache and idmap caches are consistent
- before we startup. */
-
/* React on 'smbcontrol winbindd reload-config' in the same way
as to SIGHUP signal */
message_register(MSG_SMB_CONF_UPDATED, msg_reload_services);
diff --git a/source/nsswitch/winbindd_cache.c b/source/nsswitch/winbindd_cache.c
index e9b0d2e8f9a..436f5d18740 100644
--- a/source/nsswitch/winbindd_cache.c
+++ b/source/nsswitch/winbindd_cache.c
@@ -2663,6 +2663,11 @@ static int validate_trustdoms(TDB_DATA kbuf, TDB_DATA dbuf)
return 0;
}
+static int validate_offline(TDB_DATA kbuf, TDB_DATA dbuf)
+{
+ return 0;
+}
+
/***********************************************************************
A list of all possible cache tdb keys with associated validation
functions.
@@ -2685,6 +2690,7 @@ struct key_val_struct {
{"UA", validate_ua},
{"GM/", validate_gm},
{"TRUSTDOMS/", validate_trustdoms},
+ {"WINBINDD_OFFLINE", validate_offline},
{NULL, NULL}
};