Angela Gavazzi
2004-Mar-17  11:12 UTC
[Samba] Cupsprinter over samba won't work for w2k clients
Hallo!
 
 I installed Samba 3.0.1 on Deb Woody 3.0 with Cups 1.1.19 and joined to an
 NT4 Domain without problems, after solving the "Umlaut" problem.
 Unfortunately the System was installed in german... 
 
 I read a lot in the Samba HowtoCollection and installed the printer
 following to it step by step. Added the printer driver via APW, then
 connected from the Client and changed some settings. I used the vendors
 printer driver from the orig CD. From a Linux Client I can print without
 Problems.
 
 I have 2 Printers installed.
 Both can't print an one give an error when trying to show the properties.
 
 1. Brother - nothing in error_log, on the client side it's ready, but it
say
 that it cannot print. "The printer could not be started. Check the printer
 properties."
 
 2. An OKI C5300: when opening printer properties I get this in error_log:
 
 E [16/Mar/2004:15:59:44 +0100] get_printer_attrs: resource name
 '/printers/::{2227a280-3aea-1069-a2de-08002b30309d}' no good! 
 
 and this on the Client (sorry it's german...)
 
 Der an einen Systemaufruf ?bergebene Datenbereich ist zu klein" 
 "Funktionsadresse 0x500027e4 hat eine Schutzverletzung verursacht.
 (Ausnahmecode 0xc0000005) Die Eigenschaftenseite wird  m?glicherweise nicht
 richtig angezeigt."
 
 Then it opens the properties. The printer is shows as not connected and
when
 trying to print there are no errors in error_log.
 
 Somewhere in a posting I found that I have to check if rpcclient is
working:
 
 enumdrivers:
 rpcclient -c "enumdrivers 1" -U user -W Domain Host
 rpcclient -c "enumdrivers 2" -U user -W Domain Host
 
 It looks good, give out lists with printerdriver infos..
 
 getdriver:
 rpcclient -c "getdriver drivername" -U user -W Domain Host
 
 Here I could not find out what driver name is expected - sorry...
 
 It's the first time I try to use samba as printserver - I'm working to
to
 replace all nt machines with linuxes.
 
 It would be great if anybody could give me any help to get it working.
 
 Thanks i.a.
 
 Angela
 
 
 Here's my smb.conf:
 
 [global]
 ....
 winbind separator = +
 load printers = yes
 printing = cups
 printcap name = cups
 ....
 
 #############################################################
 #Drucker
 #############################################################
 
 [print$]
 comment = Download Drucker Treiber
 path = /work/printerdrivers
 browseable = yes
 guest ok = yes
 #read only = yes
 write list = @Domain+Dom?nen-Admins, root, Domain+Administrator
 
 [printers]
 path = /var/spool/samba
 browseable = yes
 public = yes
 guest ok = no
 writable = yes
 printable = yes
 printer admin = @Domain+Dom?nen-Admins, root, Domain+Administrator
 write list = @Domain+Dom?nen-Admins, root, Domain+Administrator
-- 
Angela Gavazzi
Allg. Anthroposophische Gesellschaft
Goetheanum
Dornach - Switzerland
www.goetheanum.ch  (old one)
www.goetheanum.org ( new one - in construction)
For mail answer please remove "_no_spam_" from mailaddress.
Marcel de Riedmatten
2004-Mar-17  15:08 UTC
[Samba] Cupsprinter over samba won't work for w2k clients
Le mer 17/03/2004 ? 12:07, Angela Gavazzi a ?crit :> Hallo![ snip ]> > 2. An OKI C5300: when opening printer properties I get this in error_log: > > E [16/Mar/2004:15:59:44 +0100] get_printer_attrs: resource name > '/printers/::{2227a280-3aea-1069-a2de-08002b30309d}' no good! > > and this on the Client (sorry it's german...) > > Der an einen Systemaufruf ?bergebene Datenbereich ist zu klein" > "Funktionsadresse 0x500027e4 hat eine Schutzverletzung verursacht. > (Ausnahmecode 0xc0000005) Die Eigenschaftenseite wird m?glicherweise nicht > richtig angezeigt." > > Then it opens the properties. The printer is shows as not connected and > when > trying to print there are no errors in error_log. >Hi I had a similar problem a few month ago. I made the observation that if windows (it was 2k at the time) has a driver preinstalled it will use it. If the driver on the server is not the same as the preintalled one, this can led to "binary corruption" like you see. I solve it by putting on the server the same drivers as the preinstalled one. I found this driver on the windows original cd in a drivers.cab file.> load printers = yesThis line is of no use with cups. I would remove it but this should not be your problem. At this point i would stop samba, remove /var/lib/samba/ntdrivers.tdb and ntprinters.tdb, restart samba and have a try with the original windows drivers. Have a good day. -- Marcel de Riedmatten -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?Url : http://lists.samba.org/archive/samba/attachments/20040317/f7934529/attachment.bin