Hello, After digging for hours in different web site, read several times the samba wiki, here is my problem. I want to setup a print server for windows client with a cups backend where for now one printer run. I have setup my linux host as a member of my domain. I can use smbclient with both a user login/password or the Admin one and logon is accepted. But… I can’t see my printers in share… when I do smbclient -L myhost -U login I can see the list of shares provided by my NAS storage… fine. But no printer. I have run smbd with -i as option, and it seems to find the printer I have some lines that mention it : (ourea is the name of the printer). Adding default registry entry for printer [ourea], if it doesn't exist. regkey_open_onelevel: name = [SOFTWARE] regkey_open_onelevel: name = [Microsoft] regkey_open_onelevel: name = [Windows NT] regkey_open_onelevel: name = [CurrentVersion] regkey_open_onelevel: name = [Print] regkey_open_onelevel: name = [Printers] regkey_open_onelevel: name = [ourea] In the smbd log file I find : add_a_service: Creating snum = 1 for printers doing parameter path = /var/spool/samba/ doing parameter printable = yes doing parameter browseable = no doing parameter read only = no doing parameter available = yes I try to do an smbtree and I see no printer. The only error I see is : lp_servicenumber: couldn't find homes I try to do an rpcclient -L myhost -U login enumprinters Could not initialise spoolss. Error was NT_STATUS_OBJECT_NAME_NOT_FOUND Here is a result of a testparm oad smb config files from /etc/samba/smb.conf rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) Processing section "[homes]" Processing section "[printers]" Loaded services file OK. Server role: ROLE_DOMAIN_MEMBER Press enter to see a dump of your service definitions # Global parameters [global] workgroup = XXX realm = yyy security = ADS kerberos method = system keytab log file = /var/log/samba/%m.log printcap name = /etc/printcap winbind enum users = Yes winbind enum groups = Yes winbind use default domain = Yes winbind nss info = rfc2307 winbind refresh tickets = Yes idmap config *:range = 600000-699999 idmap config ipb:schema_mode = rfc2307 idmap config ipb:range = 500-200000 idmap config ipb:backend = ad idmap config * : backend = tdb map acl inherit = Yes store dos attributes = Yes vfs objects = acl_xattr [homes] path = /tmp/%S [printers] path = /var/spool/samba/ read only = No printable = Yes browseable = No Samba version : Version 4.3.11-Ubuntu So.. what do I miss ???? THanks in advance. — Frédéric Goudal, Ingénieur Système Bordeaux-INP frederic.goudal at bordeaux-inp.fr +33 5 56 84 23 11
On Fri, 9 Mar 2018 14:59:51 +0100 Frédéric Goudal via samba <samba at lists.samba.org> wrote:> Hello, > > After digging for hours in different web site, read several times the > samba wiki, here is my problem. I want to setup a print server for > windows client with a cups backend where for now one printer run. >> So.. what do I miss ????Possibly this page on the the Samba wiki: https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Print_Server Rowland
> Le 9 mars 2018 à 15:42, Rowland Penny via samba <samba at lists.samba.org> a écrit : > > On Fri, 9 Mar 2018 14:59:51 +0100 > Frédéric Goudal via samba <samba at lists.samba.org> wrote: > >> Hello, >> >> After digging for hours in different web site, read several times the >> samba wiki, here is my problem. I want to setup a print server for >> windows client with a cups backend where for now one printer run. >> > >> So.. what do I miss ???? > > Possibly this page on the the Samba wiki: > > https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Print_ServerI’ve read it, applied it… does not work for me…. f.g. — Frédéric Goudal, Ingénieur Système Bordeaux-INP frederic.goudal at bordeaux-inp.fr +33 5 56 84 23 11