summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-07-01 03:49:41 +0000
committerGerald Carter <jerry@samba.org>2003-07-01 03:49:41 +0000
commitdb6ce132e360a42ea6843c81429be194662fce39 (patch)
tree5af278aeaf68a5deefe5bcc2d63b7c2cfb22b8fe /source3/nsswitch
parent8d4a397d858b1eeb349ddc35fc2cc7d50c79f62f (diff)
downloadsamba-db6ce132e360a42ea6843c81429be194662fce39.tar.gz
samba-db6ce132e360a42ea6843c81429be194662fce39.tar.bz2
samba-db6ce132e360a42ea6843c81429be194662fce39.zip
* fix the trustdom_cache to work when winbindd is not running.
smbd will update the trustdom_cache periodically after locking the timestamp key (This used to be commit 7bc4b65b91f98271089335cc301146d5f0c76c3a)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/wb_client.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source3/nsswitch/wb_client.c b/source3/nsswitch/wb_client.c
index b1765a8bd7..196e44020c 100644
--- a/source3/nsswitch/wb_client.c
+++ b/source3/nsswitch/wb_client.c
@@ -283,3 +283,17 @@ int winbind_getgroups(const char *user, gid_t **list)
return wb_getgroups(user, list);
}
+
+/**********************************************************************
+ simple wrapper function to see if winbindd is alive
+**********************************************************************/
+
+BOOL winbind_ping( void )
+{
+ NSS_STATUS result;
+
+ result = winbindd_request(WINBINDD_PING, NULL, NULL);
+
+ return result == NSS_STATUS_SUCCESS;
+}
+