Orwig, Paul
2003-Nov-15 00:52 UTC
[Samba] Samba 3 and CUPs printer causes explorer to abend
I am attempting to setup a Samba printserver to replace our Windows Print servers. I have defined a few printers in CUPS, some raw, and some not. When I use the GUi to upload the drivers, The dialog works, however after that is accomplished, any attempt to get the printer properties or to use the printer from my W2K system (cpq0277) causes explorer to ABEND. System setup: RedHat 9 CUPS 1.1.17-13.3 Samba 3.0.0-2 I get the following in the samba log.cpq0277 file: [2003/11/14 16:07:18, 0] lib/util_str.c:safe_strcpy_fn(577) ERROR: NULL dest in safe_strcpy [2003/11/14 16:07:19, 0] lib/util_str.c:safe_strcpy_fn(577) ERROR: NULL dest in safe_strcpy [2003/11/14 16:07:19, 0] lib/util_str.c:safe_strcpy_fn(577) ERROR: NULL dest in safe_strcpy [2003/11/14 16:07:41, 0] smbd/connection.c:register_message_flags(220) register_message_flags: tdb_fetch failed [2003/11/14 16:07:41, 0] lib/util_str.c:safe_strcpy_fn(577) ERROR: NULL dest in safe_strcpy [2003/11/14 16:08:32, 1] smbd/service.c:close_cnum(880) cpq0277 (10.145.8.19) closed connection to service print$ smb.conf is: # Global parameters [global] workgroup = DOMAIN server string = ANNLPR01 security = DOMAIN map to guest = Bad User log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 preferred master = No local master = No domain master = No dns proxy = No wins server = ipaddress ldap ssl = no idmap uid = 10000-20000 idmap gid = 10000-20000 template shell = /bin/bash winbind separator = + winbind use default domain = Yes printing = cups [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No printer admin = porwig [print$] comment = Printer Driver Download Area path = /etc/samba/drivers browseable = yes guest ok = yes read only = yes write list = porwig CUPS printers.conf: # Written by cupsd on Fri 14 Nov 2003 11:23:25 PM GMT <DefaultPrinter DW01> Info Created by redhat-config-printer 0.6.x Location HPLJ 8000DN DeviceURI socket://192.168.8.54:9100 State Idle Accepting Yes JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 </Printer> <Printer DW02-C> Info Created by redhat-config-printer 0.6.x Location HPLJ 4500 Color DeviceURI socket://192.168.8.52:9100 State Idle Accepting Yes JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 </Printer> <Printer DW03> Info Created by redhat-config-printer 0.6.x Location HPLJ 4000 CP2-250 DeviceURI socket://192.168.8.53:9100 State Idle Accepting Yes JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 </Printer> <Printer NOG01> Info NT Group HPLJ 8000N Location CP2-250 DeviceURI socket://192.168.8.51 State Idle Accepting Yes JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 </Printer> What have I done wrong? Paul Orwig Pacific Life Annuities Newport Beach, California ------------------------------------------------------------------------------ The information in this e-mail and any attachments are for the sole use of the intended recipient and may contain privileged and confidential information. If you are not the intended recipient, any use, disclosure, copying or distribution of this message or attachment is strictly prohibited. If you believe that you have received this e-mail in error, please contact the sender immediately and delete the e-mail and all of its attachments. ==============================================================================
John H Terpstra
2003-Nov-15 01:01 UTC
[Samba] Samba 3 and CUPs printer causes explorer to abend
Paul, Have you followed the documentation in the CUPS Chapter of the Samba-HOWTO-Collection.pdf that ships with Samba-3? It's available from: http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf (Refer to the Documentation Web pages on Samba.org).>From my recollection, you might want to update your CUPS to version 1.1.18or later. If you have followed the information presented in the HOWTO, then please document precisely how I may reproduce your problem. This will need to document every step while making no assumptions that whoever is following them has any intelligence. We can fix only a problem we can reproduce. Cheers, John T. On Fri, 14 Nov 2003, Orwig, Paul wrote:> I am attempting to setup a Samba printserver to replace our Windows Print > servers. > I have defined a few printers in CUPS, some raw, and some not. > When I use the GUi to upload the drivers, The dialog works, however after > that is accomplished, any attempt to get the printer properties or to use > the printer from my W2K system (cpq0277) causes explorer to ABEND. > > System setup: > RedHat 9 > CUPS 1.1.17-13.3 > Samba 3.0.0-2 > > I get the following in the samba log.cpq0277 file: > > [2003/11/14 16:07:18, 0] lib/util_str.c:safe_strcpy_fn(577) > ERROR: NULL dest in safe_strcpy > [2003/11/14 16:07:19, 0] lib/util_str.c:safe_strcpy_fn(577) > ERROR: NULL dest in safe_strcpy > [2003/11/14 16:07:19, 0] lib/util_str.c:safe_strcpy_fn(577) > ERROR: NULL dest in safe_strcpy > [2003/11/14 16:07:41, 0] smbd/connection.c:register_message_flags(220) > register_message_flags: tdb_fetch failed > [2003/11/14 16:07:41, 0] lib/util_str.c:safe_strcpy_fn(577) > ERROR: NULL dest in safe_strcpy > [2003/11/14 16:08:32, 1] smbd/service.c:close_cnum(880) > cpq0277 (10.145.8.19) closed connection to service print$ > > > smb.conf is: > # Global parameters > [global] > workgroup = DOMAIN > server string = ANNLPR01 > security = DOMAIN > map to guest = Bad User > log file = /var/log/samba/log.%m > max log size = 50 > socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 > preferred master = No > local master = No > domain master = No > dns proxy = No > wins server = ipaddress > ldap ssl = no > idmap uid = 10000-20000 > idmap gid = 10000-20000 > template shell = /bin/bash > winbind separator = + > winbind use default domain = Yes > printing = cups > > [printers] > comment = All Printers > path = /var/spool/samba > printable = Yes > browseable = No > printer admin = porwig > > [print$] > comment = Printer Driver Download Area > path = /etc/samba/drivers > browseable = yes > guest ok = yes > read only = yes > write list = porwig > > > > CUPS printers.conf: > > # Written by cupsd on Fri 14 Nov 2003 11:23:25 PM GMT > <DefaultPrinter DW01> > Info Created by redhat-config-printer 0.6.x > Location HPLJ 8000DN > DeviceURI socket://192.168.8.54:9100 > State Idle > Accepting Yes > JobSheets none none > QuotaPeriod 0 > PageLimit 0 > KLimit 0 > </Printer> > <Printer DW02-C> > Info Created by redhat-config-printer 0.6.x > Location HPLJ 4500 Color > DeviceURI socket://192.168.8.52:9100 > State Idle > Accepting Yes > JobSheets none none > QuotaPeriod 0 > PageLimit 0 > KLimit 0 > </Printer> > <Printer DW03> > Info Created by redhat-config-printer 0.6.x > Location HPLJ 4000 CP2-250 > DeviceURI socket://192.168.8.53:9100 > State Idle > Accepting Yes > JobSheets none none > QuotaPeriod 0 > PageLimit 0 > KLimit 0 > </Printer> > <Printer NOG01> > Info NT Group HPLJ 8000N > Location CP2-250 > DeviceURI socket://192.168.8.51 > State Idle > Accepting Yes > JobSheets none none > QuotaPeriod 0 > PageLimit 0 > KLimit 0 > </Printer> > > > > What have I done wrong? > > > Paul Orwig > Pacific Life Annuities > Newport Beach, California > > ------------------------------------------------------------------------------ > The information in this e-mail and any attachments are for the sole use of the > intended recipient and may contain privileged and confidential information. > If you are not the intended recipient, any use, disclosure, copying or > distribution of this message or attachment is strictly prohibited. If you > believe that you have received this e-mail in error, please contact the sender > immediately and delete the e-mail and all of its attachments. > =============================================================================> >-- John H Terpstra Email: jht@samba.org
Tim Kelley
2003-Nov-15 16:49 UTC
[Samba] Samba 3 and CUPs printer causes explorer to abend
On Friday 14 November 2003 6:52 pm, Orwig, Paul wrote:> I am attempting to setup a Samba printserver to replace our Windows > Print servers. > I have defined a few printers in CUPS, some raw, and some not. > When I use the GUi to upload the drivers, The dialog works, however > after that is accomplished, any attempt to get the printer properties > or to use the printer from my W2K system (cpq0277) causes explorer to > ABEND.I had this exact problem, in fact, if you attempted to get the printer properties from any application it woud crash the app. I had to back down to 2.2.8a. I was using Cups 1.1.19, samba 3.0 and also 3.0.1rc1 Setting up the "point and print" stuff went fine. After the driver was installed to samba, installing and accessing the printer would crash any windows app. There wasn't anything useful in my logs, either.
Orwig, Paul
2003-Nov-17 21:17 UTC
[Samba] Samba 3 and CUPs printer causes explorer to abend
Funny you mention that... I am using your Prentice-Hall book "The Official Samba-3 HOWTO and Reference Guide" Chapter 18 of which covers CUPS. My process thus far has been: 1) Download the RedHat 9 ISO images and create install media 2) Install RedHat 9 3) Setup CUPS (I even downloaded the latest version at that time) 4) I used the redhat printconf-gui program to configure a few printers and verified that CUPS to these printers worked. I also used the CUPS web gui to configure a "raw" printer. (Printers are configured with the Jetdirect interface and not forced to popstscript.) 5) Downloaded the "Released" version of SAMBA 3.0 (RPM from samba.org) 6) Attempted to get Samba and Winbindd to work with Active Directory. ( Topic for another discussion) 7) Reverted to NTLM. Successfully see printers on Network Neighborhood. 8) Following the HOWTO procedure, uploaded printer drivers to the Samba server. (i.e. create the /etc/samba/drivers and /etc/samba/driver/W32X86 directories. used vi to add the [print$] section to smb.conf. From my W2k system, use My Network Places-->Entire Network-->Microsoft Windows Network to get to the samba server. I right-click on the server and click explore to open an explorer window. Double-click the Printers folder. Then right click a printer and choose properties. At this point, any printer that has had the driver uploaded becomes a Microsoft bomb; causing an abend on a) Windows Explorer and b) Internet explorer. Samba and CUPS were both installed as RPMs. SWAT was used to configure Samba. NOTE: The /etc/samba/drivers/W32X86 directory is populated. Also, for security reasons we do not allow the root user to be active on the Windows domain, therefore the drivers were uploaded using my userid. Access to the printers has used the same userid. I tend to not use beta and pre-release software because they are not "certified" as stable. I have a hard sell to get my managers to consider trying open source software as this is very much a Microsoft shop. My reason for using Samba-3 is to be able to work under Active Directory. I have another test server I will use to work out the problems with winbind. ( This is a proof of concept project that has dragged on for 8 weeks due mostly to foot dragging on the Microsoft side of the shop.) -----Original Message----- From: John H Terpstra [mailto:jht@samba.org] Sent: Friday, November 14, 2003 5:02 PM To: Orwig, Paul Cc: 'samba@lists.samba.org' Subject: Re: [Samba] Samba 3 and CUPs printer causes explorer to abend Paul, Have you followed the documentation in the CUPS Chapter of the Samba-HOWTO-Collection.pdf that ships with Samba-3? It's available from: http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf (Refer to the Documentation Web pages on Samba.org).>From my recollection, you might want to update your CUPS to version 1.1.18or later. If you have followed the information presented in the HOWTO, then please document precisely how I may reproduce your problem. This will need to document every step while making no assumptions that whoever is following them has any intelligence. We can fix only a problem we can reproduce. Cheers, John T. On Fri, 14 Nov 2003, Orwig, Paul wrote:> I am attempting to setup a Samba printserver to replace our Windows Print > servers. > I have defined a few printers in CUPS, some raw, and some not. > When I use the GUi to upload the drivers, The dialog works, however after > that is accomplished, any attempt to get the printer properties or to use > the printer from my W2K system (cpq0277) causes explorer to ABEND. > > System setup: > RedHat 9 > CUPS 1.1.17-13.3 > Samba 3.0.0-2 > > I get the following in the samba log.cpq0277 file: > > [2003/11/14 16:07:18, 0] lib/util_str.c:safe_strcpy_fn(577) > ERROR: NULL dest in safe_strcpy > [2003/11/14 16:07:19, 0] lib/util_str.c:safe_strcpy_fn(577) > ERROR: NULL dest in safe_strcpy > [2003/11/14 16:07:19, 0] lib/util_str.c:safe_strcpy_fn(577) > ERROR: NULL dest in safe_strcpy > [2003/11/14 16:07:41, 0] smbd/connection.c:register_message_flags(220) > register_message_flags: tdb_fetch failed > [2003/11/14 16:07:41, 0] lib/util_str.c:safe_strcpy_fn(577) > ERROR: NULL dest in safe_strcpy > [2003/11/14 16:08:32, 1] smbd/service.c:close_cnum(880) > cpq0277 (10.145.8.19) closed connection to service print$ > > > smb.conf is: > # Global parameters > [global] > workgroup = DOMAIN > server string = ANNLPR01 > security = DOMAIN > map to guest = Bad User > log file = /var/log/samba/log.%m > max log size = 50 > socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 > preferred master = No > local master = No > domain master = No > dns proxy = No > wins server = ipaddress > ldap ssl = no > idmap uid = 10000-20000 > idmap gid = 10000-20000 > template shell = /bin/bash > winbind separator = + > winbind use default domain = Yes > printing = cups > > [printers] > comment = All Printers > path = /var/spool/samba > printable = Yes > browseable = No > printer admin = porwig > > [print$] > comment = Printer Driver Download Area > path = /etc/samba/drivers > browseable = yes > guest ok = yes > read only = yes > write list = porwig > > > > CUPS printers.conf: > > # Written by cupsd on Fri 14 Nov 2003 11:23:25 PM GMT > <DefaultPrinter DW01> > Info Created by redhat-config-printer 0.6.x > Location HPLJ 8000DN > DeviceURI socket://192.168.8.54:9100 > State Idle > Accepting Yes > JobSheets none none > QuotaPeriod 0 > PageLimit 0 > KLimit 0 > </Printer> > <Printer DW02-C> > Info Created by redhat-config-printer 0.6.x > Location HPLJ 4500 Color > DeviceURI socket://192.168.8.52:9100 > State Idle > Accepting Yes > JobSheets none none > QuotaPeriod 0 > PageLimit 0 > KLimit 0 > </Printer> > <Printer DW03> > Info Created by redhat-config-printer 0.6.x > Location HPLJ 4000 CP2-250 > DeviceURI socket://192.168.8.53:9100 > State Idle > Accepting Yes > JobSheets none none > QuotaPeriod 0 > PageLimit 0 > KLimit 0 > </Printer> > <Printer NOG01> > Info NT Group HPLJ 8000N > Location CP2-250 > DeviceURI socket://192.168.8.51 > State Idle > Accepting Yes > JobSheets none none > QuotaPeriod 0 > PageLimit 0 > KLimit 0 > </Printer> > > > > What have I done wrong? > > > Paul Orwig > Pacific Life Annuities > Newport Beach, California > >---------------------------------------------------------------------------- --> The information in this e-mail and any attachments are for the sole use ofthe> intended recipient and may contain privileged and confidentialinformation.> If you are not the intended recipient, any use, disclosure, copying or > distribution of this message or attachment is strictly prohibited. If you > believe that you have received this e-mail in error, please contact thesender> immediately and delete the e-mail and all of its attachments. >============================================================================>>-- John H Terpstra Email: jht@samba.org
Orwig, Paul
2003-Nov-18 17:20 UTC
[Samba] Samba 3 and CUPs printer causes explorer to abend
Thanks for all the responses. I've updated to Samba 3.0.1pre3 and the problem is remedied. -----Original Message----- From: Gerald (Jerry) Carter [mailto:jerry@samba.org] Sent: Tuesday, November 18, 2003 6:48 AM To: Tim Kelley Cc: John H Terpstra; Orwig, Paul; 'samba@lists.samba.org' Subject: Re: [Samba] Samba 3 and CUPs printer causes explorer to abend -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tim Kelley wrote: | However, accessing the printer properties from within | windows after installing the driver would cause | the application to crash, 100% of the time (the error | IIRC was something to do with C++). I cranked up my | (samba) log level to 10 and couldn't find anything | useful to debug this, everything looked normal. Nada | in the windowz logs either, but I kinda expect that. This was our bug. It's fixed in 3.0.1pre3. See the Changelog in the WHATSNEW for details. Sorry abotu the bug. - -- cheers, jerry - ---------------------------------------------------------------------- Hewlett-Packard ------------------------- http://www.hp.com SAMBA Team ---------------------- http://www.samba.org GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc "If we're adding to the noise, turn off this song" --Switchfoot (2003) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/ujE3IR7qMdg1EfYRAnAfAKDBg2jq2uQtVd7442k5oW4bM24+YQCffy5H T5DAbzra9tntxmukfCsHHiQ=Zm9F -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ The information in this e-mail and any attachments are for the sole use of the intended recipient and may contain privileged and confidential information. If you are not the intended recipient, any use, disclosure, copying or distribution of this message or attachment is strictly prohibited. If you believe that you have received this e-mail in error, please contact the sender immediately and delete the e-mail and all of its attachments. ==============================================================================
Orwig, Paul
2003-Nov-20 18:49 UTC
[Samba] Samba 3 and CUPs printer causes explorer to abend
A complication that has me puzzled... After updating to 3.0.1pre3, I can no longer upload drivers using the GUI. I now get an Access Denied message with no indication what access is being denied. Printers that were setup before the fix are working fine. I can update the printer properties, I just can't upload drivers. Is this a result of the fix? I assume the work around is to manually add the drivers using the HOWTO procedure. Paul Orwig Pacific Life Annuities -----Original Message----- From: Gerald (Jerry) Carter [mailto:jerry@samba.org] Sent: Tuesday, November 18, 2003 6:48 AM To: Tim Kelley Cc: John H Terpstra; Orwig, Paul; 'samba@lists.samba.org' Subject: Re: [Samba] Samba 3 and CUPs printer causes explorer to abend -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tim Kelley wrote: | However, accessing the printer properties from within | windows after installing the driver would cause | the application to crash, 100% of the time (the error | IIRC was something to do with C++). I cranked up my | (samba) log level to 10 and couldn't find anything | useful to debug this, everything looked normal. Nada | in the windowz logs either, but I kinda expect that. This was our bug. It's fixed in 3.0.1pre3. See the Changelog in the WHATSNEW for details. Sorry abotu the bug. - -- cheers, jerry - ---------------------------------------------------------------------- Hewlett-Packard ------------------------- http://www.hp.com SAMBA Team ---------------------- http://www.samba.org GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc "If we're adding to the noise, turn off this song" --Switchfoot (2003) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/ujE3IR7qMdg1EfYRAnAfAKDBg2jq2uQtVd7442k5oW4bM24+YQCffy5H T5DAbzra9tntxmukfCsHHiQ=Zm9F -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ The information in this e-mail and any attachments are for the sole use of the intended recipient and may contain privileged and confidential information. If you are not the intended recipient, any use, disclosure, copying or distribution of this message or attachment is strictly prohibited. If you believe that you have received this e-mail in error, please contact the sender immediately and delete the e-mail and all of its attachments. ==============================================================================
Orwig, Paul
2003-Nov-20 19:47 UTC
[Samba] Samba 3 and CUPs printer causes explorer to abend
Interesting... I chmod to 0777 the W32X86 directory and it now works. I set debug level to 2 and saw this: [2003/11/20 11:31:01, 0] lib/util_sock.c:write_socket_data(388) write_socket_data: write failure. Error = Connection reset by peer [2003/11/20 11:31:01, 0] lib/util_sock.c:write_socket(413) write_socket: Error writing 4 bytes to socket 16: ERRNO = Connection reset by peer [2003/11/20 11:31:01, 0] lib/util_sock.c:send_smb(601) Error writing 4 bytes to client. -1. (Connection reset by peer) [2003/11/20 11:31:01, 2] smbd/server.c:exit_server(558) Closing connections [2003/11/20 11:31:01, 2] auth/auth.c:check_ntlm_password(302) check_ntlm_password: authentication for user [PORWIG] -> [PORWIG] -> [PMA_NB+PORWIG] succeeded [2003/11/20 11:31:53, 0] smbd/connection.c:register_message_flags(220) register_message_flags: tdb_fetch failed [2003/11/20 11:31:53, 0] smbd/service.c:make_connection(857) cpq0277 (10.145.8.19) couldn't find service ::{2227a280-3aea-1069-a2de-08002b30309d} [2003/11/20 11:32:50, 1] smbd/service.c:make_connection_snum(705) cpq0277 (10.145.8.19) connect to service print$ initially as user PMA_NB+PORWIG (uid=10000, gid=10000) (pid 13778) [2003/11/20 11:32:50, 2] smbd/open.c:open_directory(1320) open_directory: unable to create W32X86/__SKIP_00B8. Error was Permission denied [2003/11/20 11:34:01, 1] smbd/service.c:close_cnum(887) cpq0277 (10.145.8.19) closed connection to service print$ -----Original Message----- From: Gerald (Jerry) Carter [mailto:jerry@samba.org] Sent: Thursday, November 20, 2003 11:08 AM To: Orwig, Paul Cc: Tim Kelley; John H Terpstra; 'samba@lists.samba.org' Subject: Re: [Samba] Samba 3 and CUPs printer causes explorer to abend -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Orwig, Paul wrote: | A complication that has me puzzled... | After updating to 3.0.1pre3, I can no longer | upload drivers using the GUI. I now get an | Access Denied message with no indication what | access is being denied. Printers that were setup | before the fix are working fine. I can update | the printer properties, I just can't upload drivers. | | Is this a result of the fix? Works fine here. Cherck the log file and see why you are getting denied access (and and what stage). cheers, jerry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/vREoIR7qMdg1EfYRAlVRAJ0R2S7tummeNRoeA5qV0ccJ6vHbvwCfZ17Q vrI3P13QOgZowWYPaZeOd7Q=xvos -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ The information in this e-mail and any attachments are for the sole use of the intended recipient and may contain privileged and confidential information. If you are not the intended recipient, any use, disclosure, copying or distribution of this message or attachment is strictly prohibited. If you believe that you have received this e-mail in error, please contact the sender immediately and delete the e-mail and all of its attachments. ==============================================================================