[cups.development] cupsSetPasswordCB is not callingcups_passwd_cb

Michael Sweet msweet at apple.com
Wed Feb 24 21:57:18 PST 2010


And what I am saying is that you can't do this in your program - the CUPS API has to provide the kind of credentials the server (cupsd) is asking for.

You need to alter the policy being used in cupsd.conf.

On Feb 24, 2010, at 9:47 PM, akbar wrote:

> My problem here is when i try to release a job using CUPS API IPP_RELASE_JOB that is put on hold using CUPS API call IPP_HOLD_JOB. The Mac OS X is always prompting the user for credentials.
> My requirement is that the user who is using our application for printing the jobs does not have the admin privileges and hence he wont be able to provide the credentials.
> So what i am trying to do is to provide the admin credentials to release the print job using CUPS API.
> Can you please let me know how to go about it??
> This has become very critical for me now.
> If there is no way using CUPS API to provide admin credentials while requesting to release the print job, If there any work around so that user will not be promoted for credentials. And also to note that my application will be running in Managed user mode.
> 
> Regards
> Akbar.
> 
>> On Feb 24, 2010, at 7:25 AM, akbar wrote:
>>> static void
>>> =20
>>> while releasing the job i am calling cupsSetPasswordCB sa show below , =
>> cupsSetPasswordCB is not calling cups_passwd_cb as my nslog on =
>> cups_passwd_cb is not displaying in the console.
>>> =20
>>> what might be the problem.please give me some suggestions.
>> 
>> 
>> The password callback is only called for authentication mechanisms that =
>> require a password. In the case of Mac OS X, AuthorizationServices is =
>> used for local authentication when peer credentials (passed over the =
>> domain socket) are insufficient.
>> 
>> ___________________________________________________
>> Michael Sweet, Senior Printing System Engineer
>> 
>> 
>> 
> 
> _______________________________________________
> cups-dev mailing list
> cups-dev at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups-dev

___________________________________________________
Michael Sweet, Senior Printing System Engineer







More information about the cups mailing list