1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r5502: announce us as a print server by default

metze
This commit is contained in:
Stefan Metzmacher 2005-02-22 11:47:06 +00:00 committed by Gerald (Jerry) Carter
parent 9ec6c0e977
commit ac062a2979

View File

@ -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;
}
/***********************************************************