----- Original Message ----- > From: "chantal rosmuller" <[email protected]> > To: "Andrew Martin" <[email protected]> > Cc: [email protected] > Sent: Friday, March 1, 2013 1:46:02 AM > Subject: Re: [Samba] problem with adding printers to samba4 [solved] > > On 02/28/2013 03:47 PM, Andrew Martin wrote: > > ----- Original Message ----- > >> From: "Chantal Rosmuller" <[email protected]> > >> To: [email protected] > >> Sent: Thursday, February 28, 2013 7:53:44 AM > >> Subject: Re: [Samba] problem with adding printers to samba4 > >> [solved] > >> > >> I solved it myself, the rpm I installed was not compiled with cups > >> support > >> > >> On 02/27/2013 02:56 PM, Chantal Rosmuller wrote: > >>> Hi, > >>> > >>> I have a problem setting up shared printers in samba4, I used the > >>> manual in > >>> > >>> https://wiki.samba.org/index.php/Samba_AD_DC_HOWTO#Step_13:_Setup_a_Printer_share > >>> > >>> > >>> - I added a printer using cups > >>> - I added the printer en printer driver share as written in the > >>> wiki > >>> - I logged on as samba 4 administrator on a windows 7 client > >>> - I tried to add the printer > >>> > >>> On windows I get "acces denied" on the samba4 server in > >>> /var/log/samab4/log/smbd I get: > >>> > >>> Add printer for printer Ricoh Aficio MP 4000 PCL6 called and no > >>> smb.conf parameter "addprinter command" is defined. This > >>> parameter > >>> must exist for this call to succeed > >>> > >>> I thought the addprinter command was not available anymore for > >>> samba4? > >>> > >>> The server is a CentOS release 6.3 > >>> sama version: samba4-4.0.1 > >>> > >>> smb.conf: > >>> > >>> > >>> # Global parameters > >>> [global] > >>> workgroup =DOMAIN > >>> realm = domain.nl > >>> netbios name = PUPPETDEV01 > >>> server role = active directory domain controller > >>> dns forwarder = 172.19.1.12 > >>> > >>> [netlogon] > >>> path = /var/lib/samba4/sysvol//domain.nl/scripts > >>> read only = No > >>> > >>> [sysvol] > >>> path = /var/lib/samba4/sysvol/ > >>> read only = No > >>> > >>> [printers] > >>> comment = All Printers > >>> path = /var/lib/samba4/spool > >>> browseable = Yes > >>> read only = No > >>> printable = Yes > >>> > >>> [print$] > >>> comment = Point and Print Printer Drivers > >>> path = /var/lib/samba4/print > >>> read only = No > >>> > >>> > > Chantal, > > > > Can you elaborate a bit on how you have integrated CUPS into your > > samba4 environment? I have configured a samba4 DC and set up a > > separate > > CUPS server with samba3 to export the printer share. In samba4, > > where/how > > do you set up the printers? Is there a way to push them out to > > domain > > computers using Group Policy? > > > > Thanks, > > > > Andrew > Sure, I compiled samba 4 with cups support enabled and configured it > as > a DC. Then I installed cups with yum. Added a printer in the cups > webinterface. I added this to smb.conf: > > [printers] > comment = All Printers > path = /var/lib/samba4/spool > browseable = Yes > read only = No > printable = Yes > > [print$] > comment = Point and Print Printer Drivers > path = /var/lib/samba4/print > read only = No > > > created the spool and chmodded it to 1777 > created the printer driver directory > > Now I am not quite sure whether I added the following as I do not > have > acces to the server right now. But I might have added to the global > section in smb.conf: > > load printers = yes > printing = cups > > then I joined a windows 7 pc to the domain, went to \\servername\ and > there is was, the new printer > > So it was actually exactly like the wiki said > > As for your group policy question, I don't know. If I find out I'll > post it. Chantal,
Thanks for the clarification. So in your setup, you are manually adding printers to end-user workstations? I was hoping there would be a way to automatically add printers to workstations, and then even take it a step farther and add different printers to different workstations based on OU or group memberships. Thanks, Andrew -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
