[Samba] samba4 + cups - it is working for someone?

Adam Sienkiewicz adamsienkiewicz78 at gmail.com
Sun Jun 9 01:10:34 MDT 2013


Hi;
Thanks for tip. I implemented given changes but with no luck
I still have messages in samba log:

samba version 4.1.0pre1-GIT-3cd640d started.
Copyright Andrew Tridgell and the Samba Team 1992-2013
samba: using 'standard' process model
/usr/local/samba/sbin/smbd: smbd version 4.1.0pre1-GIT-3cd640d started.
/usr/local/samba/sbin/smbd: Copyright Andrew Tridgell and the Samba
Team 1992-2013
/usr/local/samba/sbin/smbd: WARNING: Ignoring invalid value 'cups' for
parameter 'printing'
/usr/local/samba/sbin/smbd: WARNING: Ignoring invalid value 'cups' for
parameter 'printing'
/usr/local/samba/sbin/samba_spnupdate: Unknown enumerated value 'cups'
for 'printing'
/usr/local/samba/sbin/samba_spnupdate: Traceback (most recent call last):
/usr/local/samba/sbin/samba_spnupdate:   File
"/usr/local/samba/sbin/samba_spnupdate", line 62, in <module>
/usr/local/samba/sbin/samba_spnupdate:     lp = sambaopts.get_loadparm()
/usr/local/samba/sbin/samba_spnupdate:   File
"/usr/local/samba/lib/python2.7/site-packages/samba/getopt.py", line
92, in get_loadparm
/usr/local/samba/sbin/samba_spnupdate:     self._lp.load_default()
/usr/local/samba/sbin/samba_spnupdate: RuntimeError: Unable to load default file
/usr/local/samba/sbin/samba_dnsupdate: Unknown enumerated value 'cups'
for 'printing'
/usr/local/samba/sbin/samba_dnsupdate: Traceback (most recent call last):
/usr/local/samba/sbin/samba_dnsupdate:   File
"/usr/local/samba/sbin/samba_dnsupdate", line 79, in <module>
/usr/local/samba/sbin/samba_dnsupdate:     lp = sambaopts.get_loadparm()
/usr/local/samba/sbin/samba_dnsupdate:   File
"/usr/local/samba/lib/python2.7/site-packages/samba/getopt.py", line
92, in get_loadparm
/usr/local/samba/sbin/samba_dnsupdate:     self._lp.load_default()
/usr/local/samba/sbin/samba_dnsupdate: RuntimeError: Unable to load default file
/usr/local/samba/sbin/smbd: Failed to fetch record!


2013/6/9, Mark LaPierre <marklapier at aol.com>:
> On 06/08/2013 10:45 AM, Adam Sienkiewicz wrote:
>> Hi I'm tryyng to add printing to my AD domain based on samba4. My
>> config now looks like
>>
>> [global]
>> 	workgroup = SZYB
>> 	realm = SZYB.LOCAL
>> 	netbios name = DEB7SMB4AD
>> 	server role = active directory domain controller
>> 	server string = Samba4_AD_server
>> 	server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl,
>> winbind, ntp_signd, kcc, dnsupdate
>> 	log level = 1
>> 	log file = /usr/local/samba/var/%U_%I.log
>> 	
>> [netlogon]
>> 	path = /usr/local/samba/var/locks/sysvol/szyb.local/scripts
>> 	read only = No
>>
>> [sysvol]
>> 	path = /usr/local/samba/var/locks/sysvol
>> 	read only = No
>> [home2]
>> 	path=/home/samba
>> 	comment=homes
>> 	read only = No
>> [printers]
>>      comment = All Printers
>>      path = /usr/local/samba/var/spool
>>      browseable = Yes
>>      read only = No
>>      printable = Yes
>> [print$]
>>      comment = Point and Print Printer Drivers
>>      path = /usr/local/samba/var/print
>>      read only = No
>> [pdfprinter]
>>       path = /var/spool/samba/
>>       browseable = yes
>>       printable = yes
>>       printer name = PDF
>>
>> [profiles]
>>        path = /usr/local/samba/var/profiles
>>        read only = no
>>
>>
>> but after run testparm -v commad I always get printing = bsd
>> I tryed to add into my config line
>> printing = cups
>> but after this change I got in samba log:
>>
>> Unknown enumerated value 'cups' for 'printing'
>>
>> I tried to recompile samba4 with otion --enable-cups but it didn't help.
>> in cups log there is no lines about printing jobs from samba side but
>> it is possible to print with cups.
>>
>> It means that now there is no possibility to run samba with cups ?
>> Is anybody run similar configuration to my ?
>>
>> for clarification - I used newest version of samba via git, compiled
>> it on debian 7 wheeze
>>
>
> I had quite a time getting my printer to share.  This is what I have in
> my config file that relates to my printer.  I hope this helps you.
>
> [global]
>          load printers = Yes
>          printing = cups
>          printcap name = cups
>          show add printer wizard = Yes
>          disable spoolss = No
>          max print jobs = 100
>          lpq cache time = 20
>          use client driver = yes
>          max reported print jobs = 1000
>
> [printers]
>          comment = All Network Printers
>          printable = yes
>          path = /var/spool/samba
>          browseable = No
>          guest ok = yes
>          public = yes
>          read only = yes
>          writable = no
>          create mode = 0777
>          lpq command = /usr/bin/lpq -P '%p'
>          lprm command = /usr/bin/lprm -P '%p' %j
>          lppause command = /usr/sbin/lpc hold '%p' %j
>          lpresume command = /usr/sbin/lpc release '%p' %j
>          queueresume command = /usr/sbin/lpc start '%p'
>          queuepause command = /usr/sbin/lpc stop '%p'
>
>
> --
>      _
>     °v°
>    /(_)\
>     ^ ^  Mark LaPierre
> Registered Linux user No #267004
> https://linuxcounter.net/
> ****
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>


More information about the samba mailing list