CUPS API: requesting-user-name-denied
Rytis
zibalas at gmail.com
Mon Jun 5 12:53:24 PDT 2006
I'm not sure how should i add requesting-user-name-denied to printers attributes.(i want do deny printing to user of my choise) I've tried:
ipp_t* request;
ipp_t* response;
ipp_attribute_t * attr;
request = ippNewRequest(IPP_SET_PRINTER_ATTRIBUTES);
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD,
"requesting-user-name-denied",NULL, "user1, user2, user3");
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME,
"requesting-user-name", NULL, "root");
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri",
NULL, "ipp://localhost/printers/HP");
ippAddString (request,IPP_TAG_PRINTER, IPP_TAG_NAME,
"printer-name", NULL, "HP");
response = cupsDoRequest(m_connection, request, "/admin");
What i get is:
Attribute name: status-message
Attribute value: Set-Printer-Attributes not supported!
So what do i do wrong?
More information about the cups
mailing list