Re: Problem with CUPS: need to enter password for lp and lpq several times

2004-11-21 Thread Andreas Ehn
On Sunday 21 November 2004 18:03 -0600, Tim Kelley wrote:

> It sounds like you have /jobs set to AuthType Basic / AuthClass User; which I 
> believe is the default.

Yes, you are right. I have now changed that to AuthType Digest, with the
result that I can now access /jobs.

I still have the same problem with lp and lpq, though.

> It should accept your Unix password.  Are you using some other sort of 
> authentication, such as NIS or ldap?

I'm using CUPS passwords in /etc/cups/passwd.md5 set with lppasswd.

> If not, I would strace your attempts at using lp to see just what the hell 
> cups is doing ...
> 
> like:
> 
> strace lp filename

I tried that, as well as looking at the network traffic when trying to
print a document in Ethereal, but I can't really figure out what's going
on.

Cheers,
Andreas


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Problem with CUPS: need to enter password for lp and lpq several times

2004-11-21 Thread Tim Kelley
On Sunday 21 November 2004 17:34, Andreas Ehn wrote:
> Hi,
>
> I'm using CUPS (cupsys-1.1.20final+rc1-10) in Sarge and have a problem
> using any functions that require authentication.
>
> If I want to print a document using lp, I have to enter my password
> three times before it is accepted. If I want to query the status of the
> printer queue using lpq, I have to enter the password five (usually) or
> four (rarely) times.
>
> I see similar issues when I'm trying to access the web interface. I can
> login to the main menu without problem, but if I try to access the jobs
> listing, I am prompted for the password for what seems to be an infinite
> number of times.

It sounds like you have /jobs set to AuthType Basic / AuthClass User; which I 
believe is the default.

It should accept your Unix password.  Are you using some other sort of 
authentication, such as NIS or ldap?

If not, I would strace your attempts at using lp to see just what the hell 
cups is doing ...

like:

strace lp filename



-- 
  _   _   _   _   _   _   _   _   _   _   _   _   _  
 / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ 
( t | i | m | @ | i | t | . | k | p | t | . | c | c )
 \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ 
GPG key fingerprint = 1DEE CD9B 4808 F608 FBBF  DC21 2807 D7D3 09CA 85BF


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Problem with CUPS: need to enter password for lp and lpq several times

2004-11-21 Thread Andreas Ehn
Hi,

I'm using CUPS (cupsys-1.1.20final+rc1-10) in Sarge and have a problem
using any functions that require authentication.

If I want to print a document using lp, I have to enter my password
three times before it is accepted. If I want to query the status of the
printer queue using lpq, I have to enter the password five (usually) or
four (rarely) times.

I see similar issues when I'm trying to access the web interface. I can
login to the main menu without problem, but if I try to access the jobs
listing, I am prompted for the password for what seems to be an infinite
number of times.

I am quite certain that my mistyping the password over and over again is
not the cause of this problem. :)

Any ideas?

Cheers,
Andreas


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]