comment out server portion of DsEnumerateDomainTrusts() since it causes 2k/xp clients...
[Samba/gbeck.git] / source3 / dynconfig.c
blob34c716926ccf9a803e72dfd98cae4085b4050607
1 /*
2 Unix SMB/CIFS implementation.
3 Copyright (C) 2001 by Martin Pool <mbp@samba.org>
4 Copyright (C) 2003 by Jim McDonough <jmcd@us.ibm.com>
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.
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.
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.
21 #include "includes.h"
23 /**
24 * @file dynconfig.c
26 * @brief Global configurations, initialized to configured defaults.
28 * This file should be the only file that depends on path
29 * configuration (--prefix, etc), so that if ./configure is re-run,
30 * all programs will be appropriately updated. Everything else in
31 * Samba should import extern variables from here, rather than relying
32 * on preprocessor macros.
34 * Eventually some of these may become even more variable, so that
35 * they can for example consistently be set across the whole of Samba
36 * by command-line parameters, config file entries, or environment
37 * variables.
39 * @todo Perhaps eventually these should be merged into the parameter
40 * table? There's kind of a chicken-and-egg situation there...
41 **/
43 char const *dyn_SBINDIR = SBINDIR,
44 *dyn_BINDIR = BINDIR,
45 *dyn_SWATDIR = SWATDIR;
47 pstring dyn_CONFIGFILE = CONFIGFILE; /**< Location of smb.conf file. **/
49 /** Log file directory. **/
50 pstring dyn_LOGFILEBASE = LOGFILEBASE;
52 /** Statically configured LanMan hosts. **/
53 pstring dyn_LMHOSTSFILE = LMHOSTSFILE;
55 /**
56 * @brief Samba library directory.
58 * @sa lib_path() to get the path to a file inside the LIBDIR.
59 **/
60 pstring dyn_LIBDIR = LIBDIR;
61 const fstring dyn_SHLIBEXT = SHLIBEXT;
63 /**
64 * @brief Directory holding lock files.
66 * Not writable, but used to set a default in the parameter table.
67 **/
68 const pstring dyn_LOCKDIR = LOCKDIR;
69 const pstring dyn_PIDDIR = PIDDIR;
71 const pstring dyn_SMB_PASSWD_FILE = SMB_PASSWD_FILE;
72 const pstring dyn_PRIVATE_DIR = PRIVATE_DIR;