Benutzer-Werkzeuge

Webseiten-Werkzeuge


drucken_von_samba_an_windows_7_pc_und_dortigen_drucker
*** gelöst *** solved ***

Hallo, hat mich viel Zeit gekostet, vielleicht hilfts anderen, Gruss Ekkard 

Drucken per Samba auf einen Drucker, der an Win7 angeschlossen ist, 
(einfaches Netzwerk ohne rechtliche Beschränkungen):
Print to a printer connected/ plugged to Win7 (Windows 7) using samba
(simple netzwork without right restrictions):

in alte smb.conf einfügen/ insert in old versions of samba (e.g. samba 3.0.22, 
no problem with samba 3.2.7)

    client use spnego = no
 
Testen mit Direktdruck / test it by printing directly: 
cat /var/spool/cups/d03154-001 | smbclient //192.168.0.222/bro5140 -d 3 -W WORKGROUP -U fred%passwd -c "translate;print -"

Drucken via CUPS-URL /print with CUPS (printers.conf): 
<DefaultPrinter brother5140>
Info
Location
DeviceURI smb://fred:passwd@192.168.0.222/bro5140
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>

In Win7 eintragen/ configure Win7: 
Workgroup:  WORKGROUP
Network type: öffentliches Netzwerk / public Network


# smbclient -N -L FRED-PC -U fred%passwd
Domain=[WORKGROUP] OS=[Windows 7 Professional 7600] Server=[Windows 7 Professional 6.1]

        Sharename       Type      Comment
        ---------       ----      -------
        ADMIN$          Disk      Remoteverwaltung
        bro5140         Printer   Brother HL-5340D
        C$              Disk      Standardfreigabe
        D$              Disk      Standardfreigabe
        IPC$            IPC       Remote-IPC
        print$          Disk      Druckertreiber
Domain=[WORKGROUP] OS=[Windows 7 Professional 7600] Server=[Windows 7 Professional 6.1]

        Server               Comment
        ---------            -------
        FRED-PC              Win7 fred
        SERVER               server
        XP-ZIMMER3           PC in Zimmer 3

        Workgroup            Master
        ---------            -------
        WORKGROUP            FRED-PC


========= zugehörige Fehlermeldungen - Futter für google / typical error messages:

# smbclient -N -L FRED-PC 
[...]
        Sharename       Type      Comment
        ---------       ----      -------
cli_rpc_pipe_open: cli_nt_create failed on pipe \srvsvc to machine EMPFANG-PC.  Error was
        NT_STATUS_ACCESS_DENIED
Error returning browse list: NT_STATUS_ACCESS_DENIED
Anonymous login successful

-> -U name%password

----------

cups error_log: 
E [12/May/2010:12:08:47 +0200] [Job 3155] Session setup failed: NT_STATUS_LOGON_FAILURE
E [12/May/2010:12:08:47 +0200] [Job 3155] Tree connect failed (NT_STATUS_ACCESS_DENIED)

--> use IP instead of name in DeviceURI

----------

# cat /var/spool/cups/d03154-001 | smbclient //192.168.0.222/bro5140 -d 3 -U 
  fred%passwd -c "translate;print -"

lp_load: refreshing parameters
Initialising global parameters
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
added interface ip=192.168.0.250 bcast=192.168.0.255 nmask=255.255.255.0
added interface ip=192.168.2.99 bcast=192.168.2.255 nmask=255.255.255.0
Client started (version 3.0.22-13.30-1290-SUSE-CODE10).
Connecting to 192.168.0.222 at port 445
Doing spnego session setup (blob length=58)
SPNEGO login failed: Unexpected information received
session setup failed: SUCCESS - 0

("translate;" may be not necessary)

-> workaround: insert  client use spnego = no  into smb.conf (old samba version)

Ekkard
--
http://liburg.com - linux and more
drucken_von_samba_an_windows_7_pc_und_dortigen_drucker.txt · Zuletzt geändert: 2010/08/08 20:20 (Externe Bearbeitung)