Cannot add Cups Windows Printer Driver to CUPS+SAMBA system ...

Christopher Koeber ckoeber at gmail.com
Tue Dec 6 11:33:07 PST 2011


OK, so to give more information here is what my /usr/share/cups/drivers folder looks like:

total 2360
-rw-r--r-- 1 root root     803 Jun 17  2005 cups6.inf
-rw-r--r-- 1 root root      72 Jun 17  2005 cups6.ini
-rw-r--r-- 1 root root    9529 Jun 17  2005 cups6.ppd
-rw-r--r-- 1 root root   12568 Jun 17  2005 cupsps6.dll
-rw-r--r-- 1 root root   13672 Jun 17  2005 cupsui6.dll
-rw-r--r-- 1 root root  728576 Nov  2  2006 ps5ui.dll
-rw-r--r-- 1 root root   26038 Sep 18  2006 pscript.hlp
-rw-r--r-- 1 root root 1060548 Sep 18  2006 pscript.ntf
-rw-r--r-- 1 root root  543232 Nov  2  2006 pscript5.dll

Are there any files I need to edit?

Thanks.


> I tried this and I still get the same error message.
>
> Anything else?
>
> Thanks.
>
> > is the used user printer admin?
> >
> > please take a look at
> > https://wiki.samba.org/index.php/Samba_as_a_print_server#how_to_configure_printer_admin
> >
> > regards
> > Franz
> >
> > > Hello,
> > >
> > > I am trying to install the CUPS windows drivers to a CUPS+SAMBA print server but the “cupsaddsmb” command keeps failing. I downloaded the correct 32-bit and 64-bit drivers and put the respective sets of files in the /usr/share/cups/drivers and /usr/share/cups/drivers/x64/ folders.
> > >
> > > When I run the following command the errors below appear: “cupsaddsmb -U administrator at domain.local -a –v”
> > >
> > > Any thoughts? I also have my smb.conf file below the output.
> > >
> > > ------------------
> > > Begin output:
> > > ------------------
> > >
> > > Running command: smbclient //localhost/print$ -N -A /tmp/00a194edf4e7d -c 'mkdir W32X86;put /tmp/00a194ee735d2 W32X86/LibraryPrinters.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
> > > Domain=[DOMAIN] OS=[Unix] Server=[Samba 3.5.11]
> > > NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86
> > > putting file /tmp/00a194ee735d2 as \W32X86/LibraryPrinters.ppd (1957.8 kb/s) (average 1957.8 kb/s)
> > > putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll (1622.4 kb/s) (average 1626.2 kb/s)
> > > putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp (876.8 kb/s) (average 1580.1 kb/s)
> > > putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf (23538.4 kb/s) (average 3456.1 kb/s)
> > > putting file /usr/share/cups/drivers/pscript5.dll as \W32X86/pscript5.dll (2120.0 kb/s) (average 3019.5 kb/s)
> > >
> > > Running command: smbclient //localhost/print$ -N -A /tmp/00a194edf4e7d -c 'put /usr/share/cups/drivers/cups6.ini W32X86/cups6.ini;put /usr/share/cups/drivers/cupsps6.dll W32X86/cupsps6.dll;put /usr/share/cups/drivers/cupsui6.dll W32X86/cupsui6.dll'
> > > Domain=[DOMAIN] OS=[Unix] Server=[Samba 3.5.11]
> > > putting file /usr/share/cups/drivers/cups6.ini as \W32X86/cups6.ini (17.6 kb/s) (average 17.6 kb/s)
> > > putting file /usr/share/cups/drivers/cupsps6.dll as \W32X86/cupsps6.dll (4091.0 kb/s) (average 1763.4 kb/s)
> > > putting file /usr/share/cups/drivers/cupsui6.dll as \W32X86/cupsui6.dll (6675.5 kb/s) (average 2855.0 kb/s)
> > >
> > > Running command: rpcclient localhost -N -A /tmp/00a194edf4e7d -c 'adddriver "Windows NT x86" "LibraryPrinters:pscript5.dll:LibraryPrinters.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,LibraryPrinters.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"'
> > > Connecting to host=localhost
> > > Connecting to 127.0.0.1 at port 445
> > > Connecting to 127.0.0.1 at port 139
> > > Doing spnego session setup (blob length=119)
> > > got OID=1.2.840.113554.1.2.2
> > > got OID=1.2.840.48018.1.2.2
> > > got OID=1.3.6.1.4.1.311.2.2.10
> > > got principal=cifs/CupsHostSystem.DOMAIN.LOCAL at DOMAIN.LOCAL
> > > Got challenge flags:
> > > Got NTLMSSP neg_flags=0x60898215
> > > NTLMSSP: Set final flags:
> > > Got NTLMSSP neg_flags=0x60088215
> > > NTLMSSP Sign/Seal - Initialising with flags:
> > > Got NTLMSSP neg_flags=0x60088215
> > > result was WERR_UNKNOWN_PRINTER_DRIVER
> > >
> > > Unable to install Windows 2000 printer driver files (1)!
> > > Running command: smbclient //localhost/print$ -N -A /tmp/00a194ee37892 -c 'mkdir W32X86;put /tmp/00a194ee735d2 W32X86/LibraryPrinters.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
> > > Domain=[DOMAIN] OS=[Unix] Server=[Samba 3.5.11]
> > > NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86
> > > putting file /tmp/00a194ee735d2 as \W32X86/LibraryPrinters.ppd (1398.4 kb/s) (average 1398.4 kb/s)
> > > putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll (573.2 kb/s) (average 577.8 kb/s)
> > > putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp (5085.4 kb/s) (average 595.9 kb/s)
> > > putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf (15230.7 kb/s) (average 1351.5 kb/s)
> > > putting file /usr/share/cups/drivers/pscript5.dll as \W32X86/pscript5.dll (6708.9 kb/s) (average 1654.7 kb/s)
> > >
> > > Running command: smbclient //localhost/print$ -N -A /tmp/00a194ee37892 -c 'put /usr/share/cups/drivers/cups6.ini W32X86/cups6.ini;put /usr/share/cups/drivers/cupsps6.dll W32X86/cupsps6.dll;put /usr/share/cups/drivers/cupsui6.dll W32X86/cupsui6.dll'
> > > Domain=[DOMAIN] OS=[Unix] Server=[Samba 3.5.11]
> > > putting file /usr/share/cups/drivers/cups6.ini as \W32X86/cups6.ini (17.6 kb/s) (average 17.6 kb/s)
> > > putting file /usr/share/cups/drivers/cupsps6.dll as \W32X86/cupsps6.dll (6136.4 kb/s) (average 2057.3 kb/s)
> > > putting file /usr/share/cups/drivers/cupsui6.dll as \W32X86/cupsui6.dll (417.2 kb/s) (average 676.2 kb/s)
> > >
> > > Running command: rpcclient localhost -N -A /tmp/00a194ee37892 -c 'adddriver "Windows NT x86" "LibraryPrinters:pscript5.dll:LibraryPrinters.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,LibraryPrinters.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"'
> > > Connecting to host=localhost
> > > Connecting to 127.0.0.1 at port 445
> > > Connecting to 127.0.0.1 at port 139
> > > Doing spnego session setup (blob length=119)
> > > got OID=1.2.840.113554.1.2.2
> > > got OID=1.2.840.48018.1.2.2
> > > got OID=1.3.6.1.4.1.311.2.2.10
> > > got principal=cifs/CupsHostSystem.DOMAIN.LOCAL at DOMAIN.LOCAL
> > > Got challenge flags:
> > > Got NTLMSSP neg_flags=0x60898215
> > > NTLMSSP: Set final flags:
> > > Got NTLMSSP neg_flags=0x60088215
> > > NTLMSSP Sign/Seal - Initialising with flags:
> > > Got NTLMSSP neg_flags=0x60088215
> > > result was WERR_UNKNOWN_PRINTER_DRIVER
> > >
> > > Unable to install Windows 2000 printer driver files (1)!
> > > Running command: smbclient //localhost/print$ -N -A /tmp/00a194ede6b65 -c 'mkdir W32X86;put /tmp/00a194ee735d2 W32X86/LibraryPrinters.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
> > > Domain=[DOMAIN] OS=[Unix] Server=[Samba 3.5.11]
> > > NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86
> > > putting file /tmp/00a194ee735d2 as \W32X86/LibraryPrinters.ppd (2447.2 kb/s) (average 2447.3 kb/s)
> > > putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll (1637.4 kb/s) (average 1644.8 kb/s)
> > > putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp (4237.9 kb/s) (average 1679.9 kb/s)
> > > putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf (17261.5 kb/s) (average 3538.6 kb/s)
> > > putting file /usr/share/cups/drivers/pscript5.dll as \W32X86/pscript5.dll (619.9 kb/s) (average 1701.0 kb/s)
> > >
> > > Running command: smbclient //localhost/print$ -N -A /tmp/00a194ede6b65 -c 'put /usr/share/cups/drivers/cups6.ini W32X86/cups6.ini;put /usr/share/cups/drivers/cupsps6.dll W32X86/cupsps6.dll;put /usr/share/cups/drivers/cupsui6.dll W32X86/cupsui6.dll'
> > > Domain=[DOMAIN] OS=[Unix] Server=[Samba 3.5.11]
> > > putting file /usr/share/cups/drivers/cups6.ini as \W32X86/cups6.ini (14.1 kb/s) (average 14.1 kb/s)
> > > putting file /usr/share/cups/drivers/cupsps6.dll as \W32X86/cupsps6.dll (4091.0 kb/s) (average 1543.0 kb/s)
> > > putting file /usr/share/cups/drivers/cupsui6.dll as \W32X86/cupsui6.dll (3337.8 kb/s) (average 2141.3 kb/s)
> > >
> > > Running command: rpcclient localhost -N -A /tmp/00a194ede6b65 -c 'adddriver "Windows NT x86" "LibraryPrinters:pscript5.dll:LibraryPrinters.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,LibraryPrinters.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"'
> > > Connecting to host=localhost
> > > Connecting to 127.0.0.1 at port 445
> > > Connecting to 127.0.0.1 at port 139
> > > Doing spnego session setup (blob length=119)
> > > got OID=1.2.840.113554.1.2.2
> > > got OID=1.2.840.48018.1.2.2
> > > got OID=1.3.6.1.4.1.311.2.2.10
> > > got principal=cifs/CupsHostSystem.DOMAIN.LOCAL at DOMAIN.LOCAL
> > > Got challenge flags:
> > > Got NTLMSSP neg_flags=0x60898215
> > > NTLMSSP: Set final flags:
> > > Got NTLMSSP neg_flags=0x60088215
> > > NTLMSSP Sign/Seal - Initialising with flags:
> > > Got NTLMSSP neg_flags=0x60088215
> > > result was WERR_UNKNOWN_PRINTER_DRIVER
> > >
> > > Unable to install Windows 2000 printer driver files (1)!
> > >
> > > --------
> > >
> > > Smb.conf:
> > >
> > > --------
> > >
> > > [global]
> > >    workgroup = DOMAIN
> > >    server string = Printing System - Samba Version %v
> > >    load printers = yes
> > >    log level = 3
> > >    log file = /var/log/samba/log.%m
> > >    max log size = 50
> > >    interfaces = lo eth0
> > >    bind interfaces only = yes
> > >    hosts allow = 127. 10.
> > >    hosts deny = 0.0.0.0/0
> > >    encrypt passwords = yes
> > >    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
> > >    dns proxy = no
> > >    smb ports = 139
> > >    security = ADS
> > >    realm = FQDN of DOMAIN
> > >    password server = *
> > >    winbind separator = /
> > >    idmap uid = 10000-20000
> > >    idmap gid = 10000-20000
> > >    winbind enum users = yes
> > >    winbind enum groups = yes
> > >    template homedir = /home/%D/%U
> > >    template shell = /bin/bash
> > >    client use spnego = yes
> > >    client ntlmv2 auth = yes
> > >    winbind use default domain = yes
> > >    restrict anonymous = 2
> > >    domain master = no
> > >    local master = no
> > >    preferred master = no
> > >    os level = 0
> > >    disable netbios = no
> > >    dos charset = ASCII
> > >    unix charset = UTF8
> > >    display charset = UTF8
> > >    printcap name = cups
> > >    printing = cups
> > >    invalid users = root
> > >    netbios name = SYSTEM HOSTNAME
> > >    winbind nested groups = Yes
> > >
> > > [printers]
> > >   printable = yes
> > >   browseable = yes
> > >   writable = no
> > >   path = /var/spool/samba
> > >   comment = All Printers
> > >   public = yes
> > >   create mode = 0700
> > >
> > > [print$]
> > >   comment = Printer Drivers
> > >   path = /etc/samba/drivers
> > >   browseable = yes
> > >   read only = no
> > >   guest ok = yes
> > >   write list = root, @"domain admins"
> > >   inherit acls = yes
> > >   inherit permissions = yes
> > >   create mask = 700
> > >   directory mask = 700
> > >   valid users = @"DOMAIN/Domain Users"
> > >   admin users = @"DOMAIN/Domain Admins"
> > >
> >
>





More information about the cups mailing list