summaryrefslogtreecommitdiff
path: root/source4/param
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-06-21 06:55:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:56:45 -0500
commitfea69453bd653fffdc00a27cd3fdebebbe967ce1 (patch)
tree1b87b0a77c05fe7318d86f9a0631f9740056ebd8 /source4/param
parent77c571986414afd070ba629f41317e011e52349b (diff)
downloadsamba-fea69453bd653fffdc00a27cd3fdebebbe967ce1.tar.gz
samba-fea69453bd653fffdc00a27cd3fdebebbe967ce1.tar.bz2
samba-fea69453bd653fffdc00a27cd3fdebebbe967ce1.zip
r1210: A skeleton spoolssdb, based on samdb.
(This used to be commit 487211f1ae105fd1972fecf521654dab81175c86)
Diffstat (limited to 'source4/param')
-rw-r--r--source4/param/loadparm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c
index 2e1da1ac31..0245d18c45 100644
--- a/source4/param/loadparm.c
+++ b/source4/param/loadparm.c
@@ -107,6 +107,7 @@ typedef struct
char *szConfigFile;
char *szSMBPasswdFile;
char *szSAM_URL;
+ char *szSPOOLSS_URL;
char *szPrivateDir;
char **szPassdbBackend;
char **szPreloadModules;
@@ -581,6 +582,7 @@ static struct parm_struct parm_table[] = {
{"password server", P_STRING, P_GLOBAL, &Globals.szPasswordServer, NULL, NULL, FLAG_ADVANCED | FLAG_WIZARD | FLAG_DEVELOPER},
{"smb passwd file", P_STRING, P_GLOBAL, &Globals.szSMBPasswdFile, NULL, NULL, FLAG_ADVANCED | FLAG_DEVELOPER},
{"sam database", P_STRING, P_GLOBAL, &Globals.szSAM_URL, NULL, NULL, FLAG_ADVANCED | FLAG_DEVELOPER},
+ {"spoolss database", P_STRING, P_GLOBAL, &Globals.szSPOOLSS_URL, NULL, NULL, FLAG_ADVANCED | FLAG_DEVELOPER},
{"private dir", P_STRING, P_GLOBAL, &Globals.szPrivateDir, NULL, NULL, FLAG_ADVANCED | FLAG_DEVELOPER},
{"passdb backend", P_LIST, P_GLOBAL, &Globals.szPassdbBackend, NULL, NULL, FLAG_ADVANCED | FLAG_DEVELOPER},
{"non unix account range", P_STRING, P_GLOBAL, &Globals.szNonUnixAccountRange, handle_non_unix_account_range, NULL, FLAG_ADVANCED | FLAG_DEVELOPER},
@@ -960,6 +962,7 @@ static void init_globals(void)
string_set(&Globals.szSMBPasswdFile, dyn_SMB_PASSWD_FILE);
string_set(&Globals.szPrivateDir, dyn_PRIVATE_DIR);
asprintf(&Globals.szSAM_URL, "tdb://%s/sam.ldb", dyn_PRIVATE_DIR);
+ asprintf(&Globals.szSPOOLSS_URL, "tdb://%s/spoolss.ldb", dyn_PRIVATE_DIR);
string_set(&Globals.szGuestaccount, GUEST_ACCOUNT);
@@ -1205,6 +1208,7 @@ FN_GLOBAL_STRING(lp_logfile, &Globals.szLogFile)
FN_GLOBAL_STRING(lp_configfile, &Globals.szConfigFile)
FN_GLOBAL_STRING(lp_smb_passwd_file, &Globals.szSMBPasswdFile)
FN_GLOBAL_STRING(lp_sam_url, &Globals.szSAM_URL)
+FN_GLOBAL_STRING(lp_spoolss_url, &Globals.szSPOOLSS_URL)
FN_GLOBAL_STRING(lp_private_dir, &Globals.szPrivateDir)
FN_GLOBAL_STRING(lp_serverstring, &Globals.szServerString)
FN_GLOBAL_STRING(lp_printcapname, &Globals.szPrintcapname)