source: branches/samba-3.0/source/web/diagnose.c@ 112

Last change on this file since 112 was 62, checked in by Paul Smedley, 18 years ago

Update source to 3.0.25c level

File size: 1.9 KB
Line 
1/*
2 Unix SMB/CIFS implementation.
3 diagnosis tools for web admin
4 Copyright (C) Andrew Tridgell 1998
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19*/
20
21#include "includes.h"
22#include "web/swat_proto.h"
23
24extern struct in_addr loopback_ip;
25
26#ifdef WITH_WINBIND
27
28/* check to see if winbind is running by pinging it */
29
30BOOL winbindd_running(void)
31{
32 return winbind_ping();
33}
34#endif
35
36/* check to see if nmbd is running on localhost by looking for a __SAMBA__
37 response */
38BOOL nmbd_running(void)