You are not logged in.

#1 2022-10-12 01:03:53

IvIakavelli
Member
Registered: 2022-10-10
Posts: 4

"Held for authentication" when trying to print from remote computer

Hi folks,

I have a laptop and desktop. My Canon TR8520 printer is connected via USB to my desktop. I installed the cnijfilter2 driver from the AUR. It works great.

However, connecting my laptop to the desktop's usb printer is proving difficult...

As per the Arch Wiki, i installed the avahi and nss-mdns packages on both computers. I configured the nsswitch.conf files for both computers so they can communicate with each other via mDNS.

Since the desktop would be acting as the server, I made the necessary "Browsing On" and <Location /> changes on the /etc/cups/cupsd.conf file as per the Arch Wiki, so it could pick up signals from the laptop.




So now, when I click "Add Printer" on my laptop, it detects it. It asks me for a driver, I pick "raw" because the desktop has the cnijfilter2 driver already. I don't think both computers need the driver. (Is this correct?)

Then, when I try to print from my laptop, nothing happens. I check the localhost:631/jobs/ page and it says "Held for authentication."  I check the /var/log/cups/error_log and it says a bunch of stuff, one of the lines being "No authentication data provided."

What exactly could be wrong? Is my desktop expecting some sort of authentication which my laptop isn't providing, so it stalls? My desktop prints fine though... Please help.

Offline

#2 2022-10-12 13:55:18

ywy
Member
Registered: 2022-10-12
Posts: 4

Re: "Held for authentication" when trying to print from remote computer

It turns out this is remote authentication, you need to try to authenticate with ssh and try to print using the command: lpr -# 2 [filename]

Last edited by ywy (2022-10-12 13:58:03)

Offline

#3 2022-10-12 21:58:34

IvIakavelli
Member
Registered: 2022-10-10
Posts: 4

Re: "Held for authentication" when trying to print from remote computer

Can you please elaborate? I thought the communication between my laptop and desktop just requires CUPS and Avahi's mDNS/DNS-SD protocols...

It doesn't mention anything about SSH in https://wiki.archlinux.org/title/CUPS/Printer_sharing

Are you sure about this? Also, am i correct in choosing "raw" for my CUPS driver on my laptop, since it'll be connecting to my desktop?

Thanks

Offline

#4 2022-10-13 01:15:00

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,178

Re: "Held for authentication" when trying to print from remote computer

Is cups-browsed running on the laptop?

Note that if you use the web interface to configure cups rather than editing the files directly, the help documentation is often very good. (I'm sure you can read this without using the interface for configuration, but I find it makes it easier to find what's relevant.) I mention this because I don't find this particular wiki article quite up to the Arch wiki's usual standard of clarity, but that may just be my problem.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2022-10-13 07:54:02

IvIakavelli
Member
Registered: 2022-10-10
Posts: 4

Re: "Held for authentication" when trying to print from remote computer

I don't think cups-browsed is the issue because the laptop can find the printer, it just doesn't get authenticated for some reason. Still, I started cups-browsed on the laptop and tried printing again. No dice...
I didn't configure the laptop /etc/cups/cupsd.conf file since the wiki only mentions configuring the server. I did configure the desktop cupsd.conf file and the desktop works fine.

I think I might be missing some setting on my desktop cupsd.conf that is somehow stalling the authentication for the laptop. Man, this is quite discouraging lol. Still, I'm happy at least the desktop can print...

Offline

#6 2022-10-13 08:28:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,210

Offline

#7 2022-10-15 01:25:00

IvIakavelli
Member
Registered: 2022-10-10
Posts: 4

Re: "Held for authentication" when trying to print from remote computer

I looked into this Seth but it didin't work. "AuthInfoRequired username,password" always shows up on my /etc/cups/printers.conf after restarting cups.service.

I also added
    BrowseAllow from all

in my laptop's /etc/cups/cupsd.conf just in case. I also added
    Allow  192.168.*.*
in all the <Limit> tags of the <Policy default> printer/job policies.

So i have some questions: Why am i being prompted for authentication when i try to print from my laptop? How do I disable this authentication? Why does my laptop ask for it but not my desktop? Is it because my laptop sees the printer as remote and my desktop sees it as a USB connection? Maybe this, by default, generates an authentication prompt by CUPS?

I think the problem is that when I type my authentication details in my laptop, it sends the signal to my desktop, which just stalls with it and does nothing? Hence, the "held for authentication" message? Or does it all happen on my laptop and not even enter the desktop?

Any thoughts will be appreciated, guys. Enjoy the weekend.

Offline

#8 2022-10-15 04:56:38

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,178

Re: "Held for authentication" when trying to print from remote computer

I expect you've read http://127.0.0.1:631/help/sharing.html? … ted&QUERY= already?

EDIT: I just realised you might want remote printing, which the above probably wouldn't help with, whereas I was thinking of local printing (where the desktop and laptop are on the same home LAN, say).

Last edited by cfr (2022-10-15 05:03:38)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#9 2022-10-15 08:32:42

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,210

Re: "Held for authentication" when trying to print from remote computer

when I type my authentication details in my laptop

So you do get to enter credentials? Which one do you use?

"AuthInfoRequired username,password" always shows up on my /etc/cups/printers.conf after restarting cups.service.

https://wiki.archlinux.org/title/CUPS/Troubleshooting
On both systems raise the debug level and restart cups.
Then try to print remotely and post the cups config files and logs from both systems.
If you're gonna obfuscate anything, make the obfuscation clear and distinct ("pseudonym", not "anonym" - eg. "<password_laptop>", not "xxx")

Offline

Board footer

Powered by FluxBB