nadine.vandois@bull.net
2003-Aug-11  10:02 UTC
[Samba] Ref: Samba + Cups: don't succeed to print from Windows 2000 station
Dragan, Andy
Thanks for your answsers.
Please find hereafter more information and my notes.
Nadine
---------------------- R?achemin? par Nadine Vandois/FR/BULL sur 11/08/2003
10:56 ---------------------------
"Dragan Krnic" <dkrnic@lycos.com> sur 10/08/2003 09:47:05
Veuillez r?pondre ? dkrnic@lycos.com
Pour : nadine.vandois@bull.net
cc :   samba@lists.samba.org
Objet :     Re: Samba + Cups: don't succeed to print from Windows 2000
       station
| I have configured cups (1.1.18) on a Suse 8.2 Pro
| Linux server. I have also configured samba (2.2.7a),
| and joined a domain. I have created printers with
| cups and declared them to samba with cupsaddsmb
| command.
Has samba reported success at all stages ?  --> Yes
| All seems to be ok.
| I can print from my Linux server.
| But, when I want to print from ny windows2000
| station:
| - I can find my linux server
| - I can find and connect printers which are declared
| - I do not succeed to print (the test page or
| another document). The system says it is not able to
| print. I do not see the job on the cups web
| interface.
Assuming cupsaddsmb did indeed setup the printers
without any errors, the Windows expect a default mode
from a printer, which needs to be establiched by
connecting the printer as domain admin and setting it
up through the following suit of mouse clicks:
Select the printer, right-click and choose Properties.
Go to Advanced tab and click on Printing defaults. Do
any adjustment, even if only to revert it immediately
afterwards, so that the Apply button is not greyed out.
Clik on Apply. Done.  --> I will try
However, it is essential that your samba server should
respond properly to rpcclient commands enumprinters
and enumdrivers. Lookit up in the manual.
--> about enumprinters & enudrivers:
enumprinters, getprinter --> OK
enumdrivers:
rpcclient -c "enumdrivers 1" -U root LINUX01   -->OK (Printer
Driver ...)
rpcclient -c "enumdrivers 2" -U root LINUX01   --> [Windows 4.0],
Segmentation fault
getdriver
rpcclient -c "getdriver b1_423" -U root LINUX01 --> [Windows NT
x86],
Segmentation fault.
Since last friday, I have made somme progress:
When people ask for printing through samba, they are wecome as guest
cups_samba_entry.
There was a problem because, samba could not read printers.conf.
So, I have now printers.conf readable by all.
And, now I get another error:
'problem of printer configuration'  (translation of french: probleme de
configuration d'imprimante)
(See attached file: smb.conf-ex.txt)                        (See attached
file: b1_423.PPD)
smb.conf                      driver created with cupsaddsmb for samba
--------------------------------
May someone help me ?
Is there a problem rather with cups or with samba configuration ? What is
the point of locking ?
I executed cupstestppd on cups-samba printers ppd files. All values are
'pass'.
I looked at log files, but didnt see anything that helped me.
____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
 http://login.mail.lycos.com/r/referral?aid=27005
nadine.vandois@bull.net
2003-Aug-14  13:32 UTC
[Samba] Ref: Samba + Cups: don't succeed to print from Windows 2000 station
Dragan,
I took into account your answer.
I installed and recompiled samba 2.2.8a.
I didn't load glibc2 (which is not delivered with the Suse distribution),
but all seems to be OK.
I then tried rpcclient with: enumdrivers, getdriver.It works fine now.
But I still have problems when asking to print from a windows station.
The window station find the printer, but when I ask to print a document or
the test page,I get:
Impossible to print: problem of configuration of printer.
Try ..............
and:
Test page could not be printed. Do you want .....
On my Linux server, I can print from the samba guest user:
cups_samba_entry.
Do you think it is a problem with cups or with samba ?
What can I do or test ?
Please find hereafter:
smb.conf,
(See attached file: smb.conf)
Regards,
Nadine
---------------------- R?achemin? par Nadine Vandois/FR/BULL sur 14/08/2003
14:40 ---------------------------
"Dragan Krnic" <dkrnic@lycos.com> sur 11/08/2003 20:45:43
Veuillez r?pondre ? dkrnic@lycos.com
Pour : nadine.vandois@bull.net
cc :   samba@lists.samba.org
Objet :     Re: Samba + Cups: don't succeed to print from Windows 2000
       station
>My samba version (on Suse distribution) is 2.2.7a-58.
>Can and must I a also this patch on this version
>and/or must I load samba 2.2.8 with the patch ?
SuSE 8.2, I presume. You should really get 2.2.8a
sources compressed with bzip2. Look for the files
samba-2.2.8a.tar.bz2 and samba-vscan-0.3.2a.tar.bz2
at a samba mirror).
Enclosed is a small bzip2-compressed tarball with the
other things that SuSE uses to build samba as an RPM,
but including the patch for bugs #52, #82 and #102.
All of them are checked in 3.0betas but not yet
consolidated in a new 2.x release (perhaps there will
be no more 2.x releases).
You should put both samba sources in the directory
"/usr/src/packages/SOURCES" and unpack my tarball there
with "bzip2 -d < samba.deps.tbz2 | tar xvf -" and then
execute:
   rpm -bb samba.spec 2>&1 | tee /tmp/228a.build
while still in that directory (the T-joint is so that
you may have a log of what happened in case anything
goes wrong so someone can have a look at it and tell
you what). The following suite of installable RPM
packages will then be created in
/usr/src/packages/RPMS/i386 directory, which you may
use to install patched samba properly with the command
"rpm -Uhv libsmbclient* samba*":
libsmbclient-2.2.8a-4.i386.rpm
libsmbclient-devel-2.2.8a-4.i386.rpm
samba-2.2.8a-4.i386.rpm
samba-client-2.2.8a-4.i386.rpm
samba-doc-2.2.8a-4.i386.rpm
samba-vscan-0.3.2a-0.i386.rpm
Building samba means you need to have the gcc compiler
and various devel libraries installed on your computer
(they can be found on your distro's media), but when
all is in place you only need patience. It takes a
while (20'25" on my PC).
The libraries needed:
ncurses-devel, readline-devel, security, libacl-devel,
libattr-devel, popt-devel, cups-devel, openssl,
openssl-devel, pam-devel, openldap2-devel, gdbm,
gdbm-devel, glibc-devel, glibc2-devel, glib-devel
This might look like an overkill and perhaps it is.
If someone knows better, please correct me. I haven't
seen a manifest of required libraries anywhere but
many people (including me) fail to build samba because
one or other library is missing and it's not very
obvious which one.
Good luck, Nadine.
____________________________________________________________
 Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005
Dragan Krnic
2003-Aug-14  16:55 UTC
[Samba] Re: Ref: Samba + Cups: don't succeed to print from Windows 2000 station
> I took into account your answer. > > I installed and recompiled samba 2.2.8a. > > I didn't load glibc2 (which is not delivered with > the Suse distribution), but all seems to be OK. > > I then tried rpcclient with: enumdrivers, > getdriver.It works fine now. > > > But I still have problems when asking to print from > a windows station. The window station find the > printer, but when I ask to print a document or the > test page,I get: > > > Impossible to print: problem of configuration of > printer. > Try .............. > and: > Test page could not be printed. Do you want ..... > > On my Linux server, I can print from the samba guest > user: cups_samba_entry. > > Do you think it is a problem with cups or with > samba ? >What can I do or test ?Hi Nadine, I have edited your smb.conf to best match my own setup. Lines beginning with "-" sign should be commented out. By most of them there is a short comment why. Lines beginning with "+" sign are new lines I added to make it look more like my setup. It should work at your side, but don't forget to first create the default mode by accessing the printer as root and performing the ritual I described in on of my previous letters. Good luck. ____________________________________________________________ Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail! http://login.mail.lycos.com/r/referral?aid=27005
Dragan Krnic
2003-Aug-14  16:57 UTC
[Samba] Re: Ref: Samba + Cups: don't succeed to print from Windows 2000 station
The attachment. I didn't want to post it to all. ____________________________________________________________ Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail! http://login.mail.lycos.com/r/referral?aid=27005 -------------- next part -------------- # Samba config file # you can modify it # via an editor # or via swat # Global parameters [global] workgroup = FREC netbios name = LINUX01 server string = Samba Server - security = USER # it is default encrypt passwords = Yes passwd program = /usr/bin/passwd %u - passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd: all*authentication*tokens*updated*successfully* username map = /etc/samba/user.map unix password sync = Yes + lanman auth = No # if you don't have pre-WinNT clients wins server = 129.183.1.3 log level = 9 + debug timestamp = Yes log file = /var/log/samba/%m.log load printers = Yes printcap name = cups printing = cups + printer admin = ntadmin + show add printer wizard = Yes + character set = ISO8859-1 # helps see accented chars + domain admin group = root - guest account = cups_samba_entry - allow trusted domains = Yes # only valid for security != user - socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 + socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY - obey pam restrictions = Yes # I wouldn't mess with pam yet - map to guest = Bad Password # not valid for security = user - null passwords = Yes # security loophole - public = yes # applies to a share - dns proxy = No # leave the default yes - path = /tmp # must be an error - debug level = 1 # does not exist - comment = Temporary directory # error - add user script = /usr/bin/smbadduser %u # but does it work? - pam password change = Yes # no pam for a while domain logons = Yes logon script = logon.cmd # make it up and put it under netlogon logon path = \\LINUX01\profiles\%U logon drive = U: logon home = \\LINUX01\$U +[netlogon] + path = /some/existing/path + write list = ntadmin + browseable = No +[profiles] + path = /some/existing/path + valid users = $U + read only = No + inherit permissions = No + security mask = 0777 + directory security mask = 0777 + browseable = No [homes] + valid users = $U + read only = No + inherit permissions = No + security mask = 0777 + directory security mask = 0777 + browseable = No - create mask = 0664 - directory mask = 0775 - comment = Home Directories - valid users = %S [print$] comment = Printer Drivers path = /etc/samba/drivers browseable = Yes + guest ok = No - guest ok = Yes read only = Yes - write list = root + write list = ntadmin [printers] comment = All Printers path = /var/spool/samba - browseable = Yes + browseable = No public = Yes guest ok = Yes - writable = Yes + writable = No printable = Yes - printer admin = root + printer admin = ntadmin
nadine.vandois@bull.net
2003-Aug-21  14:04 UTC
[Samba] Re: Re: Ref: Samba + Cups: don't succeed to print from Windows 2000 station
Hello Dragan,
I looked at your smb.conf, modified mine and tried again .
I always got the same error.
So I decided to look at internet, to find new information about cup and
samba, to better understand how cups and samba work and their architecture.
I notably found 'Printing Support in Samba 3.0' and 'tutorial on
cups and
foomatic (kongress 2002)'.
When reading, I made again some modifications in smb.conf.
Above all, I think it was at least a problem with the spool samba
directory. It was defined in smb.conf, but the directory did not exist !
With all these modifications, I can now print from Windows NT client (I
still have problems with W2000 and XP: I continue on reading, may it is a
problem of drivers).
In fact, I repeat the same install on Suse 8.2, after doing it on RH 9.0,
which works better up to now).
The more satisfactory is that I have made some progress,and it starts
running.
Thank you for your support and for your help.
Regards,
Nadine
---------------------- R?achemin? par Nadine Vandois/FR/BULL sur 21/08/2003
15:39 ---------------------------
"Dragan Krnic" <dkrnic@lycos.com> sur 14/08/2003 18:55:41
Veuillez r?pondre ? dkrnic@lycos.com
Pour : nadine.vandois@bull.net
cc :   samba@lists.samba.org
Objet :     Re: Ref: Samba + Cups: don't succeed to print from Windows 2000
       station
> I took into account your answer.
>
> I installed and recompiled samba 2.2.8a.
>
> I didn't load glibc2 (which is not delivered with
> the Suse distribution), but all seems to be OK.
>
> I then tried rpcclient with: enumdrivers,
> getdriver.It works fine now.
>
>
> But I still have problems when asking to print from
> a windows station. The window station find the
> printer, but when I ask to print a document or the
> test page,I get:
>
>
> Impossible to print: problem of configuration of
> printer.
> Try ..............
> and:
> Test page could not be printed. Do you want .....
>
> On my Linux server, I can print from the samba guest
> user: cups_samba_entry.
>
> Do you think it is a problem with cups or with
> samba ? >What can I do or test ?
Hi Nadine,
I have edited your smb.conf to best match my own setup.
Lines beginning with "-" sign should be commented out.
By most of them there is a short comment why. Lines
beginning with "+" sign are new lines I added to make
it look more like my setup.
It should work at your side, but don't forget to first
create the default mode by accessing the printer as
root and performing the ritual I described in on of my
previous letters.
Good luck.
____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
 http://login.mail.lycos.com/r/referral?aid=27005