Authentication to CUPS from kprinter

Helge Hansemann Helge.Hansemann at lrz-muenchen.de
Tue Sep 12 09:42:01 CEST 2006


Cristian Tibirna wrote:
> On 11 September 2006 07:48, Helge Hansemann wrote:
>   
>> Hi,
>>
>> I still have a problem when trying to authenticat a user using kpriner
>> to a CUPS server, e.g. for canceling jobs.
>>
>> Using the konqueror, I get an authentication dialog which works fine
>> Using a shell command "cancel -h server job-id" works fine, too.
>>     
>
> What do you mean with "using konqueror"? What are you doing exactly?
>
>
>   
I have a SuSE 10.0 client, without a cups server running and a CUPS
server, Version 1.2.2, compiled from source.

I´m accessing the CUPS server on the https port, but Port 631 shows the
same problems.

Using konqueror for accessing the server via a web interface and trying
to cancel a job results in a popup for authentication.
Using the shell command results in a prompt for authentication.
In both cases, the jobs can be cancelled if the right credentials are given.

Using kprinter results in a access denied popup, no matter which
username and password I use in the System Options.

The server section for canceling jobs is like this:

     77   # Only the owner or an administrator can cancel or
authenticate a job...
     78   <Limit Cancel-Job CUPS-Authenticate-Job>
     79     AuthType Basic
     80     Require user @OWNER @SYSTEM
     81     Order deny,allow
     82   </Limit>

The error log shows the following: (I put a larger part in the mail)

D [12/Sep/2006:09:30:01 +0200] cupsdAuthorize: No authentication data
provided.
D [12/Sep/2006:09:30:01 +0200] CUPS-Get-Default
E [12/Sep/2006:09:30:01 +0200] CUPS-Get-Default client-error-not-found:
No default printer
D [12/Sep/2006:09:30:01 +0200] cupsdProcessIPPRequest: 8 status_code=406
(client-error-not-found)
D [12/Sep/2006:09:30:01 +0200] cupsdCloseClient: 8
D [12/Sep/2006:09:30:01 +0200] cupsdAcceptClient: 8 from
129.187.15.9:631 (IPv4)
D [12/Sep/2006:09:30:01 +0200] cupsdReadClient: 8 POST / HTTP/1.1
D [12/Sep/2006:09:30:01 +0200] cupsdAuthorize: No authentication data
provided.
D [12/Sep/2006:09:30:01 +0200] Get-Jobs
ipp://lxgmm06.lrz-muenchen.de:631/printers/test
D [12/Sep/2006:09:30:01 +0200] cupsdProcessIPPRequest: 8 status_code=0
(successful-ok)
D [12/Sep/2006:09:30:01 +0200] cupsdCloseClient: 8
D [12/Sep/2006:09:30:03 +0200] cupsdAcceptClient: 8 from
129.187.15.9:631 (IPv4)
D [12/Sep/2006:09:30:03 +0200] cupsdReadClient: 8 POST /jobs/ HTTP/1.1
D [12/Sep/2006:09:30:03 +0200] cupsdAuthorize: No authentication data
provided.
D [12/Sep/2006:09:30:03 +0200] Cancel-Job
ipp://lxgmm06.lrz-muenchen.de:631/jobs/16
E [12/Sep/2006:09:30:03 +0200] Cancel-Job: Unauthorized
D [12/Sep/2006:09:30:03 +0200] cupsdSendError: 8 code=426 (Upgrade Required)
D [12/Sep/2006:09:30:03 +0200] cupsdCloseClient: 8
D [12/Sep/2006:09:30:03 +0200] cupsdAcceptClient: 8 from
129.187.15.9:631 (IPv4)
D [12/Sep/2006:09:30:03 +0200] cupsdReadClient: 8 OPTIONS * HTTP/1.1
D [12/Sep/2006:09:30:03 +0200] cupsdAuthorize: No authentication data
provided.
D [12/Sep/2006:09:30:03 +0200] encrypt_client: 8 Connection from
129.187.15.9 now encrypted.
D [12/Sep/2006:09:30:03 +0200] cupsdReadClient: 8 POST /jobs/ HTTP/1.1
D [12/Sep/2006:09:30:03 +0200] cupsdAuthorize: No authentication data
provided.
D [12/Sep/2006:09:30:03 +0200] Cancel-Job
ipp://lxgmm06.lrz-muenchen.de:631/jobs/16
E [12/Sep/2006:09:30:03 +0200] Cancel-Job: Unauthorized
D [12/Sep/2006:09:30:03 +0200] cupsdSendError: 8 code=401 (Unauthorized)
D [12/Sep/2006:09:30:03 +0200] cupsdCloseClient: 8
I [12/Sep/2006:09:30:03 +0200] cupsdCloseClient: SSL shutdown successful!
D [12/Sep/2006:09:30:03 +0200] cupsdCloseClient: 8
D [12/Sep/2006:09:30:04 +0200] cupsdAcceptClient: 8 from
129.187.15.9:631 (IPv4)
D [12/Sep/2006:09:30:04 +0200] cupsdReadClient: 8 POST /printers/ HTTP/1.1
D [12/Sep/2006:09:30:04 +0200] cupsdAuthorize: No authentication data
provided.
D [12/Sep/2006:09:30:04 +0200] CUPS-Get-Printers
D [12/Sep/2006:09:30:04 +0200] cupsdProcessIPPRequest: 8 status_code=0
(successful-ok)

Thanks for your help...
>> Using kprinter or kJobViewer I just get an access denied message window.
>> Is it in general possibel to get an authentication dialog from kprinter
>> and if so, how could I debug whats wrong with my client.
>>     
>
> Is KDEPrint correctly configured for you? In kprinter you can push the "System 
> options" button then go in the "CUPS server" section and provide username and 
> password.
>
>   


-- 
Helge Hansemann
Leibniz Rechenzentrum

Boltzmannstrasse 1
85748 Garching
Tel. 089 35831 8789



More information about the kde-print mailing list