summaryrefslogtreecommitdiff
path: root/source3/web/diagnose.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2002-07-27 01:37:33 +0000
committerSimo Sorce <idra@samba.org>2002-07-27 01:37:33 +0000
commit2ff0939301d738a3f8177ddb6e01781b638ce811 (patch)
tree3133df5b39dcbcc3208f72e7ed10852cf8fe64c6 /source3/web/diagnose.c
parent2a03547b6142ab934840332cda37013982cbe723 (diff)
downloadsamba-2ff0939301d738a3f8177ddb6e01781b638ce811.tar.gz
samba-2ff0939301d738a3f8177ddb6e01781b638ce811.tar.bz2
samba-2ff0939301d738a3f8177ddb6e01781b638ce811.zip
as per user request added windbind start/stop/restart in swat
almost working, seem it does not yet properly detect if windbind is running or not in all situations testing is welcome. (This used to be commit e0988e918667e3bc7b7cfb19ae81bf8c05fe582a)
Diffstat (limited to 'source3/web/diagnose.c')
-rw-r--r--source3/web/diagnose.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/source3/web/diagnose.c b/source3/web/diagnose.c
index e822474aab..396499bcb9 100644
--- a/source3/web/diagnose.c
+++ b/source3/web/diagnose.c
@@ -21,6 +21,23 @@
#include "includes.h"
#include "../web/swat_proto.h"
+#ifdef WITH_WINBIND
+
+NSS_STATUS winbindd_request(int req_type,
+ struct winbindd_request *request,
+ struct winbindd_response *response);
+
+/* check to see if winbind is running by pinging it */
+
+BOOL winbindd_running(void)
+{
+
+ if (winbindd_request(WINBINDD_PING, NULL, NULL))
+ return False;
+
+ return True;
+}
+#endif
/* check to see if nmbd is running on localhost by looking for a __SAMBA__
response */