cupsSetPasswordCB is not callingcups_passwd_cb

akbar akbarbasha at tataelxsi.co.in
Wed Feb 24 21:47:35 PST 2010


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
>
>
>





More information about the cups mailing list