• 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
Setting Network Preferences Programatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Setting Network Preferences Programatically
      • From: Quinn <email@hidden>
    • Re: Setting Network Preferences Programatically
      • From: "Justin C. Walker" <email@hidden>
  • Prev by Date: Re: select is not working for me
  • Next by Date: OT: iChatAV
  • Previous by thread: Re: select is not working for me
  • Next by thread: Re: Setting Network Preferences Programatically
  • Index(es):
    • Date
    • Thread