• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: MoreSCF/AuthSample Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MoreSCF/AuthSample Questions


  • Subject: Re: MoreSCF/AuthSample Questions
  • From: Quinn <email@hidden>
  • Date: Tue, 2 Apr 2002 11:42:45 +0100

At 7:30 -0800 29/3/02, Arthur Lewis wrote:
1. I have an authsample/MoreSCF combination working for configuring the
System Preferences for a dialup connection - however it does the usual uinx
fork() for a parent/child and uses a pipes for communication - "my other app"
can then send phone/dns etc. info to the parent via CFMessagePort so that the
parent can send that on to the child via the pipes. However a better
approach <???> might be to have "my other app" use Launch Services to launch
the authentication/scf configuration process and communicate directly with
this "child" using CFMessagePort. My only hesitation in going ahead and
doing this is that I may as a result open up a security hole. Another
alternative is just to use a file for persistence and communication!! I
would appreciate what you thoughts are on this.

I'm a little confused by this. Are you saying you have 3 processes?

"my other app" -> parent -> child

If so, perhaps you can explain why you decided to split it this way.

As a general rule I recommend that folks who need to do stuff like this copy the existing sample, AuthSample, as much as possible. That way, if there's a security flaw in the sample, it's our fault and not yours. Is there any reason why you can't just copy the AuthSample design wholesale?

<http://developer.apple.com/samplecode/Sample_Code/Security/AuthSample.htm>

2. I also have a need for PPPoE and MoreSCF doesn't seem to support this at
a high level like it does for dialup - is this something that is on the
drawing boards for a future version of MoreSCF -

Well, yes, except that I'll probably never find time to do it unless someone writes into DTS and asks for it.

or should I just bite the bullet and do it using MoreSCF as a model?

If you need it quickly that's probably the best solution. It's a bit tricky, but not too bad once you get into the swing of how SCF works. Start by cloning MoreSCMakeNewDialupSet. Then delete the MoreSCModemDigest parameter; you don't need to supply a MoreSCEthernetDigest because that digest only holds a MAC address, and the MAC address will already be set after you call MoreSCNewSet. Then all you need to do is change the interface type to kSCValNetInterfaceTypePPP and the subtype to kSCValNetInterfaceSubTypePPPoE.

Once you've done this you should compare the results with a PPPoE service that you created by hand using the control panel. The MoreSCF docs explain how to get at the property list that SCF uses to store this stuff.

S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re(2): Help! OTSndDisconnect Crashing In Carbon!
  • Next by Date: underlying bsd printing system
  • Previous by thread: Re: OpenTransport Versions
  • Next by thread: underlying bsd printing system
  • Index(es):
    • Date
    • Thread