diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2002-08-17 14:34:48 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2002-08-17 14:34:48 +0000 |
commit | fcbb06414d2c8385ce4e68f23905a528c8fbd4e8 (patch) | |
tree | c144a08aabe318863920dd5bfac4ce9bd84f265f /source3/web/diagnose.c | |
parent | e51ed63864a4e334e0e5ca518750892480e37d52 (diff) | |
download | samba-fcbb06414d2c8385ce4e68f23905a528c8fbd4e8.tar.gz samba-fcbb06414d2c8385ce4e68f23905a528c8fbd4e8.tar.bz2 samba-fcbb06414d2c8385ce4e68f23905a528c8fbd4e8.zip |
sync 3.0 branch with HEAD
(This used to be commit d53d77cc8e21dfbfd376d529661ef299e14e31a0)
Diffstat (limited to 'source3/web/diagnose.c')
-rw-r--r-- | source3/web/diagnose.c | 17 |
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 */ |