Setting Network Preferences Programatically
Setting Network Preferences Programatically
- Subject: Setting Network Preferences Programatically
- From: James Masasaki <email@hidden>
- Date: Mon, 20 Oct 2003 14:09:17 -0700
Hello.
I am trying to set the Network settings in System Preferences
programatically. Mainly I just need to save, set, then later restore
the Web Proxy Settings in Network preferences. And of course I need a
way to do this without being logged in as root or su.
I don't have time to dig into System Configuration Framework.
I have looked at MoreSecurity and MoreAuthSample, but those samples
say there is no way to do this without the user getting the
authorization dialog.
I need a way to do this without being root or su, and without the
system prompting the user for the authentication dialog.
I know there must be a way to do it because I can set the Network
settings in System Preferences without the authorization dialog
without being logged in as root or su.
So my questions are:
1) Can this be accomplished programatically at all in OS X 10.1 and 10.2?
2) Can it be accomplished without needing to write a priviledged user tool?
3) Can it be accomplished programatically at all without prompting
the user for the authentication dialog?
If so, can someone point me to the precise sample of code that shows
how to do this?
Thanks,
James
_______________________________________________
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.