From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20021229 Description of problem: When I add a smb printer , I'm unable to print on it unless I edit the printer and set a domain name in WORKGROUP field ('Queue type' tab). Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Setup an smb printer 2. 3. Actual Results: Unable to use the printer until domain name specified Expected Results: Ability to specify domain name during initial printer setup or getting domain name from samba config file Additional info:
The 'specify' dialog probably should be changed to allow you to set this. I'm puzzled about why it wasn't set in the first place though; the browse screen should have worked it out. When you selected it and added the queue, is 'workgroup' just empty when you edit it? For me, it sets the workgroup field to the right value already.
redhat-config-printer is unable to list any printers because it tries to login as ROOT to windows servers. I have to use 'Specify' button to specyfy printer, and this dialog does not allow me to enter workgroup/domain name.
BTW, some computer names displayed incorrectly, for example in my network PROUTER displayed as IS~PROUTER, MOSHEO displayed as IS~MOSHEO.
Okay, the 'specify' dialog is now fixed in CVS, and automatically determines the workgroup and IP address. For the incorrectly-shown names, can you please try this, and show me the output?: 1. nmblookup '*' 2. for each IP address that it shows, nmblookup -A 172.16.10.1 (or whatever) (If you happen to know the IP address of e.g. PROUTER, just nmblookup -A <ipaddr> should be enough to figure out what's up.) Thanks.
Incidentally, the 'specify' dialog behaviour fix is in redhat-config-printer-0.6.27-1, which will shortly appear in rawhide.
Here is an output of 'nmblookup -A 10.0.5.12' (PROUTER): Looking up status of 10.0.5.12 PROUTER <00> - M <ACTIVE> NCDEV <00> - <GROUP> M <ACTIVE> PROUTER <03> - M <ACTIVE> PROUTER$ <03> - M <ACTIVE> PROUTER <20> - M <ACTIVE> NCDEV <1e> - <GROUP> M <ACTIVE> INet~Services <1c> - <GROUP> M <ACTIVE> IS~PROUTER <00> - M <ACTIVE>
Okay, I think I've fixed that in CVS.
Fixed package is redhat-config-printer-0.6.28-1, which will shortly appear in rawhide. Please verify that it fixes the problem for you.
Still doesn't work for me. Workgroup field is empty for manually specified printers. Sorry :)
Please do this: cd /usr/share/printconf/util python >>> import pysmb >>> pysmb.get_host_info ("PROUTER") (then control-D) What does it say?
It prints: {'IP': '', 'GROUP': '', 'NAME': 'PROUTER'} I researched it a bit more, and I think I understand my problem. For some reason, my print server does not respond to broadcast queries on the interface to which my machine is connected and nmblookup '*' can't find it. On the other hand if I connect my RHL machine to other network, it finds print server and configures workgroup properly after I specify share manually. Is there a better way to get list of servers, like querying a wins server?
I was rather hoping that nmblookup would check for a WINS server in smb.conf if broadcasting failed, but it seems that it doesn't. Presumably, 'nmblookup -U your_wins_server -S PROUTER' gives you the workgroup information?
No, but nmblookup -R -U wins_server -S PROUTER does the job
Okay, redhat-config-printer-0.6.32-1 is another attempt at getting this right. I've put it at ftp://people.redhat.com/twaugh/tmp (just rpmbuild --rebuild it). Let me know if it's any better. Thanks.
Worked for me :). Great. Thanks.
Good. You don't want to know how it does it though. :-)