Bug 4437 - enumport command etc. do not distinguish port name/uri
Summary: enumport command etc. do not distinguish port name/uri
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Printing (show other bugs)
Version: 3.0.24
Hardware: Other Linux
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
Depends on:
Reported: 2007-03-08 11:13 UTC by Björn Jacke
Modified: 2012-01-09 11:02 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Björn Jacke 2007-03-08 11:13:52 UTC
when a printer port is added port name and port uri are being handed over to "add port command" like this:

IP_2.3.4.5 socket://

when "enumports command" just lists the above string then this *whole* string is being listed as port name to EnumPorts RPC calls. As a result instead of "IP_2.3.4.5" windows clients show "IP_2.3.4.5 socket://" as printer port.

On the other hand it's not possible to just output the port name "IP_2.3.4.5" via "enumports command" because Samba then never gets the port uri again.

At the moment the only possible way to use the add/enum port commands in conjunction with printers is to let "enumport command" just output the port uri which is however contrary to what Windows does and the port name is drawn useless then.
Comment 1 Andreas Schneider 2012-01-09 11:02:03 UTC
This is probably fixed with a newer Samba version. If you still see the error. Please open a new bug with 'debug level = 10' logfiles of the new Samba version 3.5 or 3.6. Thanks!