Bug 7993 - "net rpc printer MIGRATE" command fails
Summary: "net rpc printer MIGRATE" command fails
Status: NEW
Alias: None
Product: Samba 3.5
Classification: Unclassified
Component: Printing (show other bugs)
Version: 3.5.8
Hardware: x86 Windows XP
: P5 normal
Target Milestone: ---
Assignee: Guenther Deschner
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-09 14:45 UTC by Alberto
Modified: 2012-12-12 10:23 UTC (History)
1 user (show)

See Also:


Attachments
fix for handling a single printer (1009 bytes, patch)
2011-05-19 08:57 UTC, Guenther Deschner
asn: review+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alberto 2011-03-09 14:45:10 UTC
PC1: Windows XP SP3 without any firewall
PC2: OpenSuSE 11.3 + samba-3.5.8-27.1.i586 built with SuSEStudio + samba repository

(PC1)
- add a new user root and put it in Administrators group
- add a new printer (to file) with native driver HP LaserJet 4100 PS named Printer1 and share it as Printer1

(PC2)
- create the Printer1 queue in cups
- left smb.conf as default and create a smb password for root
- start nmb and smb daemons (now you can reach \\PC2\Printer1 trough PC1)  
in console try this command:

PC2:/etc/samba # net rpc printer list -S localhost -U root%password
listing printers
printer 1: \\PC2\Printer1, shared as: Printer1

PC2:/etc/samba # net rpc printer list -S PC1 -U root%password
listing printers
printer 1: Printer1, shared as: Printer1

they work, but if you run

PC2:/etc/samba # net rpc printer MIGRATE DRIVERS "Printer1" -S PC1 --destination=localhost -U root%password
migrating printer driver for:   [\\PC1\Printer1] / [Printer1]
cannot open printer \\PC1\Printer1 on server \\PC1: WERR_WRITE_PROTECT
write_data: write failure. Error = Bad file descriptor
write_socket: Error writing 39 bytes to socket -1215871488: ERRNO = Bad file descriptor
Error writing 39 bytes to client. -1 (Bad file descriptor)

the command fails
Comment 1 Alberto 2011-05-13 10:32:31 UTC
No answers again.  

Have I wrong the modality to open a bug?

In Samba 3.5.8 the queues migration , don't work.

Thank you
Comment 2 Guenther Deschner 2011-05-19 08:57:19 UTC
Created attachment 6455 [details]
fix for handling a single printer

not the full fix, but a start..
Comment 3 Andreas Schneider 2011-05-19 08:59:55 UTC
Comment on attachment 6455 [details]
fix for handling a single printer

Looks good!
Comment 4 Guenther Deschner 2011-05-19 09:01:45 UTC
Karolin, please add to 3.5
Comment 5 Karolin Seeger 2011-05-20 19:06:55 UTC
(In reply to comment #4)
> Karolin, please add to 3.5

Pushed to v3-5-test.
Re-assigning to Günther.
Comment 6 Karolin Seeger 2012-12-12 10:23:04 UTC
Günther, can this one be closed?