Re: System Configuration
Re: System Configuration
- Subject: Re: System Configuration
- From: "v.1 Labs" <email@hidden>
- Date: Fri, 02 Mar 2007 15:30:46 -0400
Okay, I am _really_ happy it's not just me. I have to say, I'm
starting to feel a little bit brain damaged. I've been using
the .plist file as a reference and not finding it too much of a help.
The problem isn't so much that I don't know what to edit, I just
don't know how to edit it. Technically, the only four fields I really
need to set are AuthName, AuthPassword, CommRemoteAddress, and
UserDefinedName, because the default values for everything else are
likely to be accurate.
As for MoreSCF, I'm not sure what's wrong with it, but it definitely
doesn't work. I've got the newest version of it. I saw a posting
somewhere complaining about it not working on the newest Intel iMacs,
which is what I'm developing on, so that's likely it. I can only
hope that it gets fixed soon, because I think what I want to do would
be pretty easy if MoreSCF worked for me.
Anyway, thanks for the encouragement;
Mark
On 2-Mar-07, at 3:20 PM, Duane Murphy wrote:
--- At Fri, 2 Mar 2007 14:59:15 -0400, v.1 Labs wrote:
Hello, again;
I'm still banging away on trying to create a new dial-up account.
I've been trying for days and I'm not having any luck at all. I've
been desperately trying to get Apple's MoreSCF code to actually work,
but it doesn't even compile. My efforts to figure out exactly how the
System Configuration system actually works have failed miserably.
I'm getting to my wits end on this problem. Does anyone have any
advice? Is it just me, or is it inordinately difficult to create a
dial-up account on OS X?
Yes, it is extraordinarily difficult to use the SystemConfiguration
framework.
MoreSCF not compiling seems odd. MoreSCF is usually kept pretty up
to date.
That said, years ago we wrote C++ wrappers for SystemConfiguration at
the same time that MoreSCF was being developed so we did not use
MoreSCF.
Here are a couplel of hints for you:
scutil and /Library/Preferences/SystemConfiguration/preferences.plist
Do not edit preferences.plist by hand! I only reference this to
give you
some place to see how the data is being written and organized. Use the
SC APIs to do the work.
scutil gives you an interactive view of the SC system, it is very
handy.
When I was working on this, I took a snapshot of the preference file,
then used the Network System Preferences to create a configuration,
then
did a diff. That gave me the hints I needed to work out what to do to
create a configuration programmatically.
As I recall, we ended up creating an .xml file with most of the boiler
plate and reading that into a dictionary then massaging the results
for
specifics. Like I said it's been years. I'd have to dig pretty deep to
come up with more.
Good luck,
...Duane
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden