Authentication to CUPS from kprinter

Helge Hansemann Helge.Hansemann at lrz-muenchen.de
Tue Sep 12 12:29:26 CEST 2006


Kurt Pfeifle wrote:
> On Tuesday 12 September 2006 08:42, Helge Hansemann wrote:
>   
>> 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.
>>     
>
> Which version of KDE is that?
>   
KDE-Version:  3.4.2 Level "b"
  Benutzer: UserA
  Rechnername:  ClientA
  System:  Linux
  Version:  2.6.13-15.11-smp
  Maschine:  x86_64
>   
>> 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>
>>     
>
>
> Please do also post the complete contents of
>
>   $(kde-config --localprefix)/share/config/kdeprintrc
>   $(kde-config --localprefix)/share/config/kprinterrc
>   /etc/cups/client.conf    # leave out the comment lines
>   $HOME/.cupsrc            # leave out the comment lines
>   $HOME/.cups/client.conf  # leave out the comment lines
>
> (Some of these files may not exist on your system)
>   
---------------

UserA at ClientA:/etc/ssl/certs> cat /home/UserA/.kde/share/config/kdeprintrc
[$Version]
update_info=kdeprintrc.upd:kde-3.1-toolbar

[CUPS]
Host=ServerA
InstallDir=
Login=UserA
Port=631
SavePassword=false

[Filter]
LocationRe=
Printers=

[General]
ExternalPreview=false
PreviewCommand=gv
ShowStatusMsg=true
TestPage=
TimerDelay=5
UseLast=true
ViewType=2

[Jobs]
Limit=0
Size=550,250

------------

UserA at ClientA:~> cat /home/UserA/.kde/share/config/kprinterrc
[KFileDialog Settings]
Recent
Files=$HOME/signature.txt,$HOME/Documents/Poster/iCalps.ps,$HOME/xr5500dt.ppd

[KPrinter Settings]
ApplicationOptions=
DialogReduced=false
FilterEnabled=false
PrintCommand=
Printer=test

-----------

UserA at ClientA:~> cat /etc/cups/client.conf | grep -v "#"

ServerName ServerA


----------

not existing

  $HOME/.cupsrc            # leave out the comment lines
  $HOME/.cups/client.conf  # leave out the comment lines


Greetings, Helge

> Cheers,
> Kurt
> _______________________________________________
> kde-print mailing list
> kde-print at kde.org
> https://mail.kde.org/mailman/listinfo/kde-print
>
>   


-- 
Helge Hansemann
Leibniz Rechenzentrum

Boltzmannstrasse 1
85748 Garching
Tel. 089 35831 8789



More information about the kde-print mailing list