Networking Forums

Networking Forums > Computer Networking > Linux Networking > Samba problem print to windows printer with domain

Reply
Thread Tools Display Modes

Samba problem print to windows printer with domain

 
 
Nelson A
Guest
Posts: n/a

 
      12-18-2003, 06:43 PM
--------- Ingles

hello people.

I have a problem and this me have crazy... i think that have any
problem with the configuration. but i no have idea what is problem?

i have a redhat ES 2.1 with kernel 2.4.9-e.12 and samba 2.2.7. the
configuration of samba is the follow:

[global]
workgroup = tla
server string = Samba Server
printcap name = /etc/printcap
load printers = yes
printing = lprng
log file = /var/log/samba/%m.log
max log size = 0
security = domain
password server = tlant
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
*passwd:*all*authentication*tokens*updated*success fully*

Ahora bien el problema es el siguiente: Tengo un dominio llamado tla y
el
pdc es tlant (un servidor W2k server "lamentablemente") ahora bien hay
impresoras en algunas maquinas windows, y el detalle es que las
configuro

Great, Now the problem is the following: i have a domain called tla
and the PDC is tlant (server Windows 2K server), i have various pcs
with windows and this shared printers... i configure this printers
from linux with protocol smb (Samba), i use printools-tui for
configure this printers, i intro in the wizard the name resource
shared, ip adress, domain, user and password domain, but simply not
print. i thinked that problem are in the domain them add the linux to
the domain with the command:

smbpasswd -j tla -r tlant -Uadministrator%password

This show me " joined domain tla "


Probe print and nothing. I want verify if the problem is the samba, i
connected in a machine windows and this have a printer shared with
smbclient, execute the command print and the printer print the file..
the test is the following:

smbclient //jenniferg/jenny -Unelsonf%nelsonf
added interface ip=180.180.1.11 bcast=180.180.1.255
nmask=255.255.255.0
Got a positive name query response from 180.180.1.124 ( 180.180.1.124
)
smb: \> print /etc/hosts
putting file /etc/hosts as hosts-12260 (104.8 kb/s) (average 104.8
kb/s)
smb: \> quit

now. when i do from command line samba show me the message in the
status

lpstat -t
IF filter 'mf_wrapper' filter msg - 'closed *main::KID3'

And after for timeout the job is delete from queue jobs

the command lpq -L show me the following

Printer: hp1@tlalnx63b
Queue: no printable jobs in queue
Status: IF filter 'mf_wrapper' filter msg - 'closing *main::KID3' at
09:49:44.132
Status: IF filter 'mf_wrapper' filter msg - 'closed *main::KID3' at
09:49:44.132
Status: IF filter 'mf_wrapper' filter msg - 'tail process done
writing data
to *main::STDOUT' at 09:49:45.121
Status: IF filter 'mf_wrapper' filter msg - 'KID4 finished' at
09:49:45.121
Status: IF filter 'mf_wrapper' filter msg - 'KID3 finished' at
09:49:45.123
Status: IF filter 'mf_wrapper' filter msg - 'Main process finished'
at
09:49:45.124
Status: IF filter 'mf_wrapper' filter finished at 09:49:45.131
Status: printing finished at 09:49:45.131
Status: LP filter msg - 'cat: write error: Broken pipe' at
09:49:45.131
Status: waiting for printer filter to exit at 09:49:45.131
Status: accounting at end at 09:49:45.131
Status: finished 'cfA880tlalnx63b.tlant.com', status 'JFAIL' at
09:49:45.131
Status: subserver pid 12911 exit status 'JFAIL' at 09:49:45.132
Status: job 'cfA880tlalnx63b.tlant.com' attempt 2, trying 3 times at
09:49:45.132
Status: waiting for subserver to exit at 09:49:45.133
Status: attempt 3, sleeping 20 before retry at 09:49:45.134
Status: subserver pid 12982 starting at 09:50:05.143
Status: accounting at start at 09:50:05.143
Status: opening device '|/usr/share/printconf/util/smbprint' at
09:50:05.143
Status: printing job 'cfA880tlalnx63b.tlant.com' at 09:50:05.144
Status: processing 'dfA880tlalnx63b.tlant.com', size 322, format 'f',
IF
filter 'mf_wrapper' at 09:50:05.144
Status: IF filter 'mf_wrapper' filter msg - '--mfomatic
cdj970-273833.foo'
at 09:50:05.200
Status: IF filter 'mf_wrapper' filter msg - '--mfomatic' at
09:50:05.200
Status: IF filter 'mf_wrapper' filter msg - 'cdj970-273833.foo' at
09:50:05.200
Status: IF filter 'mf_wrapper' filter msg - 'cdj970-273833.foo' at
09:50:05.201
Status: IF filter 'mf_wrapper' filter msg - 'Case 3' at 09:50:05.201
Status: IF filter 'mf_wrapper' filter msg - '' at 09:50:05.201
Status: IF filter 'mf_wrapper' filter msg - '1' at 09:50:05.201
Status: IF filter 'mf_wrapper' filter msg - 'Lpdomatic backend
version
$Revision: 1.4 $ running...' at 09:50:05.228
Status: IF filter 'mf_wrapper' filter msg - '/usr/sbin/lpdomatic:
called
with arguments: '--lprng','cdj970-273833.foo'' at 09:50:05.228
Status: IF filter 'mf_wrapper' filter msg - '/usr/sbin/lpdomatic:
af=cdj970-273833.foo' at 09:50:05.228
Status: IF filter 'mf_wrapper' filter msg - 'Seaerching job for
option
settings ...' at 09:50:05.233
Status: IF filter 'mf_wrapper' filter msg - '/usr/sbin/lpdomatic:
options:
''' at 09:50:05.234
Status: IF filter 'mf_wrapper' filter msg - 'prepending:
<</PageSize[612
792]/ImagingBBox null>>setpagedevice' at 09:50:05.235
Status: IF filter 'mf_wrapper' filter msg - '/usr/sbin/lpdomatic:
running:
gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sDEVICE=cdj970 -dPapertype=0
-dQual
ity=1 -dRetStatus=1 -dMasterGamma=1.000000 -dGammaValC=0.000000
-dGammaValM=
0.000000 -dGammaValY=0.000000 -dGammaValK=0.000000 -dDuplex=0
-sOutputFile=-
-' at 09:50:05.235
Status: IF filter 'mf_wrapper' filter msg - '/usr/sbin/lpdomatic:
postscript job line1=>%!PS-Adobe-2.0' at 09:50:05.235
Status: IF filter 'mf_wrapper' filter msg - '<' at 09:50:05.235
Status: IF filter 'mf_wrapper' filter msg - '/usr/sbin/lpdomatic:
prepended:' at 09:50:05.236
Status: IF filter 'mf_wrapper' filter msg - '<</PageSize[612
792]/ImagingBBox null>>setpagedevice' at 09:50:05.236
Status: IF filter 'mf_wrapper' filter msg - 'gs PID pid2=13060' at
09:50:05.237
Status: IF filter 'mf_wrapper' filter msg - 'foomatic-gswrapper: gs
'-dBATCH' '-dSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=cdj970'
'-dPapertype=0'
'-dQuality=1' '-dRetStatus=1' '-dMasterGamma=1.000000'
'-dGammaValC=0.000000' '-dGammaValM=0.000000' '-dGammaValY=0.000000'
'-dGammaValK=0.000000' '-dDuplex=0' '-sOutputFile=/dev/fd/3' '-' 3>&1
1>&2'
at 09:50:05.241
Status: IF filter 'mf_wrapper' filter msg - 'closing *main::KID3' at
09:50:05.409
Status: IF filter 'mf_wrapper' filter msg - 'closed *main::KID3' at
09:50:05.409
Status: IF filter 'mf_wrapper' filter msg - 'tail process done
writing data
to *main::STDOUT' at 09:50:06.387
Status: IF filter 'mf_wrapper' filter msg - 'KID4 finished' at
09:50:06.387
Status: IF filter 'mf_wrapper' filter msg - 'KID3 finished' at
09:50:06.389
Status: IF filter 'mf_wrapper' filter msg - 'Main process finished'
at
09:50:06.390
Status: IF filter 'mf_wrapper' filter finished at 09:50:06.397
Status: printing finished at 09:50:06.397
Status: LP filter msg - 'cat: write error: Broken pipe' at
09:50:06.397
Status: waiting for printer filter to exit at 09:50:06.397
Status: accounting at end at 09:50:06.397
Status: finished 'cfA880tlalnx63b.tlant.com', status 'JFAIL' at
09:50:06.397
Status: subserver pid 12982 exit status 'JFAIL' at 09:50:06.398
Status: job 'cfA880tlalnx63b.tlant.com', attempt 3, allowed 3 at
09:50:06.398
Status: send_failure_action 'JREMOVE' at 09:50:06.398
Status: job 'cfA880tlalnx63b.tlant.com', removing job - status
JREMOVE at
09:50:06.398
Status: removing job 'cfA880tlalnx63b.tlant.com' - JREMOVE at
09:50:06.398

i am not sure that the problem is for the " broken pipe " the show in
the log, where are the problem ? if possible a bug ? i find in the
erratas and no view nothing...

------- Espanol

Hola Gente.

Bien tengo de nuevo un problemilla, supongo que es algo que me falta
por
configurar, pero no tengo idea que podra ser, bien. veamos:

Tengo un Redhat ES 2.1 con el kernel 2.4.9-e.12 y con samba 2.2.7
configurado de la siguiente forma:

[global]
workgroup = tla
server string = Samba Server
printcap name = /etc/printcap
load printers = yes
printing = lprng
log file = /var/log/samba/%m.log
max log size = 0
security = domain
password server = tlant
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
*passwd:*all*authentication*tokens*updated*success fully*

Ahora bien el problema es el siguiente: Tengo un dominio llamado tla y
el
pdc es tlant (un servidor W2k server "lamentablemente") ahora bien hay
impresoras en algunas maquinas windows, y el detalle es que las
configuro
diciendole que es el protocolo smb y le doy el nombre del recurso
compartido, direcciones ip, el dominio, el user, password y todo lo
que pide
los asistentes, pero simplemente no imprime. me dije es un problema
de
dominio, entonces integre el linux al dominio con el comando:

smbpasswd -j tla -r tlant -Uadministrador%password

me dio el mensaje " joined domain tla "

probe nuevamente imprimir y nada. quise verificar si era un problema
con el
samba, y me meti a la maquina por medio del smbclient y le ejecute el
comando print y imprimio mal pero imprimio, supongo que era el tipo de
impresora que es deskjet. lo que hice para probar fue lo siguiente.

smbclient //jenniferg/jenny -Unelsonf%nelsonf
added interface ip=180.180.1.11 bcast=180.180.1.255
nmask=255.255.255.0
Got a positive name query response from 180.180.1.124 ( 180.180.1.124
)
smb: \> print /etc/hosts
putting file /etc/hosts as hosts-12260 (104.8 kb/s) (average 104.8
kb/s)
smb: \> quit

ahora cuando lo hago desde linea de comando samba me muestra el
siguiente
mensaje en el status del lpstat -t

IF filter 'mf_wrapper' filter msg - 'closed *main::KID3'

luego por timeout elimina el trabajo de la cola de impresion.

Lo que muestra el lpq -L

Printer: hp1@tlalnx63b
Queue: no printable jobs in queue
Status: IF filter 'mf_wrapper' filter msg - 'closing *main::KID3' at
09:49:44.132
Status: IF filter 'mf_wrapper' filter msg - 'closed *main::KID3' at
09:49:44.132
Status: IF filter 'mf_wrapper' filter msg - 'tail process done
writing data
to *main::STDOUT' at 09:49:45.121
Status: IF filter 'mf_wrapper' filter msg - 'KID4 finished' at
09:49:45.121
Status: IF filter 'mf_wrapper' filter msg - 'KID3 finished' at
09:49:45.123
Status: IF filter 'mf_wrapper' filter msg - 'Main process finished'
at
09:49:45.124
Status: IF filter 'mf_wrapper' filter finished at 09:49:45.131
Status: printing finished at 09:49:45.131
Status: LP filter msg - 'cat: write error: Broken pipe' at
09:49:45.131
Status: waiting for printer filter to exit at 09:49:45.131
Status: accounting at end at 09:49:45.131
Status: finished 'cfA880tlalnx63b.tlant.com', status 'JFAIL' at
09:49:45.131
Status: subserver pid 12911 exit status 'JFAIL' at 09:49:45.132
Status: job 'cfA880tlalnx63b.tlant.com' attempt 2, trying 3 times at
09:49:45.132
Status: waiting for subserver to exit at 09:49:45.133
Status: attempt 3, sleeping 20 before retry at 09:49:45.134
Status: subserver pid 12982 starting at 09:50:05.143
Status: accounting at start at 09:50:05.143
Status: opening device '|/usr/share/printconf/util/smbprint' at
09:50:05.143
Status: printing job 'cfA880tlalnx63b.tlant.com' at 09:50:05.144
Status: processing 'dfA880tlalnx63b.tlant.com', size 322, format 'f',
IF
filter 'mf_wrapper' at 09:50:05.144
Status: IF filter 'mf_wrapper' filter msg - '--mfomatic
cdj970-273833.foo'
at 09:50:05.200
Status: IF filter 'mf_wrapper' filter msg - '--mfomatic' at
09:50:05.200
Status: IF filter 'mf_wrapper' filter msg - 'cdj970-273833.foo' at
09:50:05.200
Status: IF filter 'mf_wrapper' filter msg - 'cdj970-273833.foo' at
09:50:05.201
Status: IF filter 'mf_wrapper' filter msg - 'Case 3' at 09:50:05.201
Status: IF filter 'mf_wrapper' filter msg - '' at 09:50:05.201
Status: IF filter 'mf_wrapper' filter msg - '1' at 09:50:05.201
Status: IF filter 'mf_wrapper' filter msg - 'Lpdomatic backend
version
$Revision: 1.4 $ running...' at 09:50:05.228
Status: IF filter 'mf_wrapper' filter msg - '/usr/sbin/lpdomatic:
called
with arguments: '--lprng','cdj970-273833.foo'' at 09:50:05.228
Status: IF filter 'mf_wrapper' filter msg - '/usr/sbin/lpdomatic:
af=cdj970-273833.foo' at 09:50:05.228
Status: IF filter 'mf_wrapper' filter msg - 'Seaerching job for
option
settings ...' at 09:50:05.233
Status: IF filter 'mf_wrapper' filter msg - '/usr/sbin/lpdomatic:
options:
''' at 09:50:05.234
Status: IF filter 'mf_wrapper' filter msg - 'prepending:
<</PageSize[612
792]/ImagingBBox null>>setpagedevice' at 09:50:05.235
Status: IF filter 'mf_wrapper' filter msg - '/usr/sbin/lpdomatic:
running:
gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sDEVICE=cdj970 -dPapertype=0
-dQual
ity=1 -dRetStatus=1 -dMasterGamma=1.000000 -dGammaValC=0.000000
-dGammaValM=
0.000000 -dGammaValY=0.000000 -dGammaValK=0.000000 -dDuplex=0
-sOutputFile=-
-' at 09:50:05.235
Status: IF filter 'mf_wrapper' filter msg - '/usr/sbin/lpdomatic:
postscript job line1=>%!PS-Adobe-2.0' at 09:50:05.235
Status: IF filter 'mf_wrapper' filter msg - '<' at 09:50:05.235
Status: IF filter 'mf_wrapper' filter msg - '/usr/sbin/lpdomatic:
prepended:' at 09:50:05.236
Status: IF filter 'mf_wrapper' filter msg - '<</PageSize[612
792]/ImagingBBox null>>setpagedevice' at 09:50:05.236
Status: IF filter 'mf_wrapper' filter msg - 'gs PID pid2=13060' at
09:50:05.237
Status: IF filter 'mf_wrapper' filter msg - 'foomatic-gswrapper: gs
'-dBATCH' '-dSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=cdj970'
'-dPapertype=0'
'-dQuality=1' '-dRetStatus=1' '-dMasterGamma=1.000000'
'-dGammaValC=0.000000' '-dGammaValM=0.000000' '-dGammaValY=0.000000'
'-dGammaValK=0.000000' '-dDuplex=0' '-sOutputFile=/dev/fd/3' '-' 3>&1
1>&2'
at 09:50:05.241
Status: IF filter 'mf_wrapper' filter msg - 'closing *main::KID3' at
09:50:05.409
Status: IF filter 'mf_wrapper' filter msg - 'closed *main::KID3' at
09:50:05.409
Status: IF filter 'mf_wrapper' filter msg - 'tail process done
writing data
to *main::STDOUT' at 09:50:06.387
Status: IF filter 'mf_wrapper' filter msg - 'KID4 finished' at
09:50:06.387
Status: IF filter 'mf_wrapper' filter msg - 'KID3 finished' at
09:50:06.389
Status: IF filter 'mf_wrapper' filter msg - 'Main process finished'
at
09:50:06.390
Status: IF filter 'mf_wrapper' filter finished at 09:50:06.397
Status: printing finished at 09:50:06.397
Status: LP filter msg - 'cat: write error: Broken pipe' at
09:50:06.397
Status: waiting for printer filter to exit at 09:50:06.397
Status: accounting at end at 09:50:06.397
Status: finished 'cfA880tlalnx63b.tlant.com', status 'JFAIL' at
09:50:06.397
Status: subserver pid 12982 exit status 'JFAIL' at 09:50:06.398
Status: job 'cfA880tlalnx63b.tlant.com', attempt 3, allowed 3 at
09:50:06.398
Status: send_failure_action 'JREMOVE' at 09:50:06.398
Status: job 'cfA880tlalnx63b.tlant.com', removing job - status
JREMOVE at
09:50:06.398
Status: removing job 'cfA880tlalnx63b.tlant.com' - JREMOVE at
09:50:06.398

no se si el problema lo esta dando el broken pipe que muestra al
principio,
donde podria estar el problema ? seria algun bug ? yo busque en los
erratas
de redhat y no vi nada de eso.

Soy todo oidos,

Gracias de antemano.

Saludos,

Nelson de Freitas.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba: Problem joining RHEL 3 machine to a WIndows 2000 domain scorpioboii Linux Networking 0 08-26-2005 07:43 PM
Windows 98 can't print to Samba printer Jarod Linux Networking 3 11-22-2004 07:35 PM
Can't print from one domain to shared printer. Tom C. Windows Networking 0 02-17-2004 04:22 PM
Can't print from one domain to shared printer. Tom C. Windows Networking 1 02-12-2004 01:50 PM
Samba: cannot print from Win98 to Linux printer Paul Towlson Linux Networking 0 10-15-2003 11:19 AM



1 2 3 4 5 6 7 8 9 10 11