Sean Millichamp
2003-Feb-11 16:40 UTC
[Samba] Problems loading printer list using Samba 2.2.7a with CUPS
I am using Samba to successfully load the printer list directly from CUPS with one fairly significant caveat. If a printer is added to CUPS while Samba is running there is apparently nothing I can do to have it visibly appear when doing a list of the services in Samba (such as with "smbclient -L"). This is also a problem if Samba starts before CUPS in the boot sequence. I find that this is a significant problem because Windows XP will apparently not let you add a printer (even if you specify it's path by name) if you can't see the printer listed when doing "smbclient -L". Restarting Samba shows the printers in the share list and allows XP to add them. Is anyone else seeing this problem and is there anything I can do to fix it? Restarting Samba isn't a very practical solution every time a printer is added. My smb.conf has these printing related options set: printcap name = cups load printers = yes printing = cups Thanks, Sean
Gerald (Jerry) Carter
2003-Feb-13 18:10 UTC
[Samba] Problems loading printer list using Samba 2.2.7a with CUPS
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 11 Feb 2003, Sean Millichamp wrote:> I am using Samba to successfully load the printer list directly from > CUPS with one fairly significant caveat. > > If a printer is added to CUPS while Samba is running there is apparently > nothing I can do to have it visibly appear when doing a list of the > services in Samba (such as with "smbclient -L"). This is also a problem > if Samba starts before CUPS in the boot sequence.known bug. The workaround i think is to send a HUP signal to the smbd in question. Will be fixed in 3.0. Are you using and addprinter command in smb.conf? If so I can probably send you a small patch for 2.2. cheers, jerry ---------------------------------------------------------------------- Hewlett-Packard ------------------------- http://www.hp.com SAMBA Team ---------------------- http://www.samba.org GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc "You can never go home again, Oatman, but I guess you can shop there." --John Cusack - "Grosse Point Blank" (1997) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) Comment: For info see http://quantumlab.net/pine_privacy_guard/ iD8DBQE+S9+HIR7qMdg1EfYRAnk5AKDqEd/ZwKC4fnvtevWjZz2EyoO3OQCfTKOM x+QKi+9cpJU7R2wIYYBW8NQ=CQeq -----END PGP SIGNATURE-----
Kurt Pfeifle
2003-Feb-13 19:57 UTC
[Samba] Problems loading printer list using Samba 2.2.7a with CUPS
Gerald (Jerry) Carter wrote on Samba-Digest:> On 11 Feb 2003, Sean Millichamp wrote: > >> I am using Samba to successfully load the printer list directly from >> CUPS with one fairly significant caveat. >> >> If a printer is added to CUPS while Samba is running there is apparently >> nothing I can do to have it visibly appear when doing a list of the >> services in Samba (such as with "smbclient -L"). This is also a problem >> if Samba starts before CUPS in the boot sequence. > > known bug. The workaround i think is to send a HUP signal to the smbd in > question. Will be fixed in 3.0.Is it possible to fix this in 2.2.8 too? Please, please consider to fix this also in the next (last?) 2.2.x release.> Are you using and addprinter command in smb.conf? If so I can probably > send you a small patch for 2.2. > > > cheers, jerry > ---------------------------------------------------------------------- > Hewlett-Packard ------------------------- http://www.hp.com > SAMBA Team ---------------------- http://www.samba.org > GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc > "You can never go home again, Oatman, but I guess you can shop there." > --John Cusack - "Grosse Point Blank" (1997)Thanks, Kurt