[Samba] Adding a cups printer driver

2005-06-15 Thread Stefan Petersen
Hello,

I have desperately tried to make samba able to share the printer with a 
Win98SE client. First I tried cupsaddsmb, but that failed.

Then I walked step by step through the installation manually as explained in 
the documentation, and everything stopped on this point:

rpcclient -Uroot% -c 'adddriver Windows NT x86\ 
PagePro8L:Iconlib.dll:PagePro8L.ppd:Adobeps4.drv:Adobeps4.hlp:NULL:RAW:NULL'\ 
-d3 coruscant

added interface ip=192.168.1.20 bcast=192.168.1.255 nmask=255.255.255.0
Connecting to host=coruscant
Connecting to 192.168.1.20 at port 445
Doing spnego session setup (blob length=58)
got OID=1 3 6 1 4 1 311 2 2 10
got principal=NONE
Got challenge flags:
Got NTLMSSP neg_flags=0x608a0215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60080215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60080215
lsa_io_sec_qos: length c does not match size 8
result was WERR_INVALID_PARAM

This is my smb.conf:


[global]

workgroup = GENTOO_HOME
server string = coruscant
encrypt passwords = True
security = user
smb passwd file = /etc/samba/private/smbpasswd
log file = /var/log/samba/log.%m
interfaces = eth1
hosts deny = ALL
hosts allow = 192.168.1.2 192.168.1.20 127.0.0.1
debug level = 2

load printers = yes
browseable = yes
printing = cups
printcap name = cups
interfaces = eth1

[print$]
comment = Printer Drivers
# this path holds the driver structure
path = /etc/samba/drivers
guest ok = no
browseable = yes
read only = yes
write list = root

[PagePro8L]

comment = Minolta PagePro8L Network Printer
printable = yes
path = /var/spool/samba
public = yes
guest ok = yes
printer admin = printeruser,root,ute


[printers]
comment = All Printer
path = /var/spool/samba
browseable = no
public = yes
writable = no
printable = yes
printer admin = root
guest ok = yes

Although I do not know in which succession the driver files should be added in
the colon separated list, probably can help.

The samba-version is 3.0.14a on a Gentoo-Box.


Do somebody have an idea?

Thanks in advance,

Stefan.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Adding a cups printer driver

2005-06-15 Thread Stefan Petersen
Hello,

I have desperately tried to make samba able to share the printer with a 
Win98SE client. First I tried cupsaddsmb, but that failed.

Then I walked step by step through the installation manually as explained in 
the documentation, and everything stopped on this point:

rpcclient -Uroot% -c 'adddriver Windows NT x86\ 
PagePro8L:Iconlib.dll:PagePro8L.ppd:Adobeps4.drv:Adobeps4.hlp:NULL:RAW:NULL'\ 
-d3 coruscant

added interface ip=192.168.1.20 bcast=192.168.1.255 nmask=255.255.255.0
Connecting to host=coruscant
Connecting to 192.168.1.20 at port 445
Doing spnego session setup (blob length=58)
got OID=1 3 6 1 4 1 311 2 2 10
got principal=NONE
Got challenge flags:
Got NTLMSSP neg_flags=0x608a0215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60080215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60080215
lsa_io_sec_qos: length c does not match size 8
result was WERR_INVALID_PARAM

This is my smb.conf:


[global]

workgroup = GENTOO_HOME
server string = coruscant
encrypt passwords = True
security = user
smb passwd file = /etc/samba/private/smbpasswd
log file = /var/log/samba/log.%m
interfaces = eth1
hosts deny = ALL
hosts allow = 192.168.1.2 192.168.1.20 127.0.0.1
debug level = 2

load printers = yes
browseable = yes
printing = cups
printcap name = cups
interfaces = eth1

[print$]
comment = Printer Drivers
# this path holds the driver structure
path = /etc/samba/drivers
guest ok = no
browseable = yes
read only = yes
write list = root

[PagePro8L]

comment = Minolta PagePro8L Network Printer
printable = yes
path = /var/spool/samba
public = yes
guest ok = yes
printer admin = printeruser,root,ute


[printers]
comment = All Printer
path = /var/spool/samba
browseable = no
public = yes
writable = no
printable = yes
printer admin = root
guest ok = yes

Although I do not know in which succession the driver files should be added in
the colon separated list, probably can help.

The samba-version is 3.0.14a on a Gentoo-Box.


Do somebody have an idea?

Thanks in advance,

Stefan.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Adding a cups printer driver

2005-06-15 Thread Stefan Petersen
Am Mittwoch, 15. Juni 2005 18:47 schrieb Tomasz Chmielewski:
 Stefan Petersen schrieb:
  Hello,
 
  I have desperately tried to make samba able to share the printer with a
  Win98SE client. First I tried cupsaddsmb, but that failed.

 (...)

  Do somebody have an idea?

 using cupsaddsmb is the easiest.
 perhaps if you could describe why it failed (what command do you use,
 what postscript drivers you have etc.), we could help you.

 --
 Tomek


Hello Tomek,

thanks for your quick reply.

These are the drivers. They are the Adobe Postscript Drivers.
The files reside in /usr/share/cups/drivers.


coruscant ~ # ls -la /usr/share/cups/drivers
insgesamt 2249
drwxr-xr-x2 root root  240  5. Jun 17:33 .
drwxr-xr-x   10 root root  248  5. Jun 13:01 ..
-rw-r--r--1 root root   575573 11. Jul 2000  Adfonts.mfm
-rw-r--r--1 root root  1297280 23. Apr 2002  Adobeps4.drv
-rw-r--r--1 root root   233348 23. Apr 2002  Adobeps4.hlp
-rw-r--r--1 root root13493 23. Apr 2002  defprtr2.ppd
-rw-r--r--1 root root   118128 23. Apr 2002  Iconlib.dll
-rw-r--r--1 root root57344 11. Jul 2000  Psmon.dll


The command for cupsaddsmb was:

cupsaddsmb -H coruscant -U root -h coruscant -v PagePro8L
Password for root required to access coruscant via SAMBA:
Running command: rpcclient coruscant -N -U'root%' -c 'setdriver PagePro8L 
PagePro8L'
added interface ip=192.168.1.20 bcast=192.168.1.255 nmask=255.255.255.0
Succesfully set PagePro8L to driver PagePro8L.


But unfortuanately the directory of /etc/samba/drivers, as set in smb.conf is 
empty. I can browse the printer on the Win98 client, but it still asks for 
the driver. As far as I know it should get the drivers from the server, 
shouldn't it?

Then I have tried to add the printer manually, to see where the problem is 
located. The result of this try was the content of the first posting.

So I have no idea how to succeed.

Stefan.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba