summaryrefslogtreecommitdiff
path: root/source4/param
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-02-22 11:47:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:10:51 -0500
commitc13baabc91daef3c7e38f753f87caae117b3adcd (patch)
treeac911c2e0448e56d07942c532b4bf25dc4007b62 /source4/param
parent218f289ed75e9e10feadb92fbbb41e69025ab010 (diff)
downloadsamba-c13baabc91daef3c7e38f753f87caae117b3adcd.tar.gz
samba-c13baabc91daef3c7e38f753f87caae117b3adcd.tar.bz2
samba-c13baabc91daef3c7e38f753f87caae117b3adcd.zip
r5502: announce us as a print server by default
metze (This used to be commit ac062a29799665121c15f60a8f5d25a3c68e51ae)
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 e023ba5f93..33026dd9e0 100644
--- a/source4/param/loadparm.c
+++ b/source4/param/loadparm.c
@@ -1926,6 +1926,7 @@ static BOOL service_ok(int iService)
DEBUG(0, ("WARNING: [%s] service MUST be printable!\n",
ServicePtrs[iService]->szService));
ServicePtrs[iService]->bPrint_ok = True;
+ update_server_announce_as_printserver();
}
/* [printers] service must also be non-browsable. */
if (ServicePtrs[iService]->bBrowseable)
@@ -3245,6 +3246,9 @@ static void set_default_server_announce_type(void)
if (lp_host_msdfs())
default_server_announce |= SV_TYPE_DFS_SERVER;
+
+ /* TODO: only announce us as print server when we are a print server */
+ default_server_announce |= SV_TYPE_PRINTQ_SERVER;
}
/***********************************************************