Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CUPS authentication (not the ShadowHash issue)



> OK, I did some digging around on the Apple developer site and came across
> what I think is the best way to handle this: Am I correct in assuming that I can
> use the URL Loading System, since IPP uses HTTP transport?  If so, I'd like to
> get some clarifications before I proceed:
>
> 1. Would the raw IPP request data be loaded into an NSURL object via a
> setResourceData: message (after being converted to an NSData object)?
 
Sorry to be such a bother with all these posts, but to answer my own question (after a bit more research), the data would actually go into an NSMutableURLRequest object via a setHTTPBody: message, with the HTTP headers and method set accordingly.
 
> 2. Is the response data that is finalized in the NSURLConnection
> connectionDidFinishLoading: delegate method in raw format, i.e. something I
> could extract from the NSData object and map directly into the IPP structures?
 
After poring over the CUPS source until my head hurt, it appears that the answer to this question is "yes".
 
I'm certainly open to being contradicted on either of these answers. 
-------------- Original message --------------
First of all, let me thank Jim Lovell and others for the help I've received so far with my app for retrieving jobs from a remote IPP queue.  I have the job retrieval functionality implemented and my user interface running swimmingly, but I've run into a roadblock of my own ignorance: supporting job operations (cancel, hold, etc.) on the remotely queued jobs from a client.
 
The IPP requests are not the problem; I think I pretty much understand what needs to be done.  The problem is authentication: I don't know how to do it.  Can anyone point me in the right direction for documentation or sample code for doing this under OS X 10.3 and how I can tie in my IPP job requests?
 
I'd rather not open the remote machine's cupsd admin functionality to the world unfettered, so I'm not interested in ways of disabling the authentication.  However, I would be interested in help with Keychain support.
 
TIA.
 
Alan
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Printing mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/printing/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.