Bug 28730

Summary: Attempt to add network printer puts up a Samba password prompt
Product: Mageia Reporter: Frank Griffin <ftg>
Component: RPM PackagesAssignee: All Packagers <pkg-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal CC: bgmilne, ouaurelien
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: system-config-printer-1.5.15-1.mga8.src.rpm, samba ? CVE:
Status comment:
Attachments: Password Prompt

Description Frank Griffin 2021-04-05 20:18:06 CEST
If you choose "Add Printer" -> "Network Printer", enter a host name, and select "Find", it will find the single printer on the remote system and fill it in as an ipp: address.  However, it will then put up a prompt for userid root, domain MYGROUP, and ask for a password.  The "domain MYGROUP" indicates that this is a Samba prompt, but Samba isn't involved with IPP printers.  If you then cancel the prompt and click Forward, the printer is installed correctly.

I'll add the password prompt screenshot as an attachment.

The remote system has Samba installed, but it's not in use for anything.  SCP has a specific selection under "Find Network Printer" for "Windows Printer using Samba", and it shouldn't be prompting for a Samba userid/password if that isn't used.
Comment 1 Frank Griffin 2021-04-05 20:25:52 CEST
Created attachment 12580 [details]
Password Prompt
Comment 2 Aurelien Oudelet 2021-04-06 20:11:31 CEST
I'm not able to test this on my systems as I have a self networked Printer (not connected directly to a computer).

Adding CC Samba packager for advice.
@Buchan, can you help Franck?

Source RPM: system-config-printer => system-config-printer, samba ?
CC: (none) => bgmilne, ouaurelien

Comment 3 Lewis Smith 2021-04-12 11:25:49 CEST
> If you then cancel the prompt and click Forward,
> the printer is installed correctly
Good news.

Assigning this bug globally, as system-config-printer is maintained by different people.

Source RPM: system-config-printer, samba ? => system-config-printer-1.5.15-1.mga8.src.rpm, samba ?
Assignee: bugsquad => pkg-bugs

Comment 4 Frank Griffin 2022-06-05 04:46:58 CEST
This is still happening in cauldron, and may be related to bug#30398 .
Comment 5 Frank Griffin 2022-06-28 22:11:46 CEST
This is still happening in cauldron, and while the printer on the owning system works fine, trying to define the printer to any remote system trying to use it fails.  s-c-p will define a printer icon, but it can't be specified as default and anything sent to it just hangs in limbo.
Comment 6 Buchan Milne 2022-07-27 18:21:20 CEST
> If you choose "Add Printer" -> "Network Printer", enter a host name, and select "Find", it will find the single printer on the remote system and fill it in as an ipp: address.  However, it will then put up a prompt for userid root, domain MYGROUP, and ask for a password.

> The remote system has Samba installed, but it's not in use for anything.

Can you temporarily stop samba on the remote system to see if the behaviour is different?

> Adding CC Samba packager for advice.
> @Buchan, can you help Franck?

system-config-printer shouldn't be doing anything SMB/CIFS-related if the user has selected IPP ...
Comment 7 Frank Griffin 2022-07-28 01:17:09 CEST
The system that owns the printer has samba installed but systemctl shows it as disabled completely.  The system trying to create a remote printer doesn't have a samba.service at all, which I assume means that samba isn't installed.