2

I am working on MAC Application in which I have to create a VPN Connection through my application and which I have done successfully with the Help of EBAS Example code from Apple.

Now when user want to connect to VPN, I need to modify the Network Interface and for that an AUTHORIZATION POPUP Comes to get user Permission.

This is the Process to Modify the Network Interface.

First Lock the System Preference using Below Code

Boolean result = SCPreferencesLock(prefToUnlock,TRUE); // Authentication PopUp Comes here to lock the system preferences.

and then rest of the code to modify the network which is working fine.

Now whenever above line execute popup comes to get authorization to Lock SystemPeference. I want this to be done by Helper Tool Without Authorization Popup. I tried that but it always returns false.

Is there any other way I can archive this.

Thanks

Malav Soni
  • 2,739
  • 1
  • 23
  • 52
  • Hey @Malav were you able to find a solution? – GP89 Nov 25 '15 at 11:44
  • yes you can run above line of code in your custom helper tool function and call that function from your from-end application. It works for me... Hope it works for you too – Malav Soni Nov 25 '15 at 18:13
  • I found the issue I was having thanks! Are you able to modify the connection entry for example change the server address? – GP89 Nov 25 '15 at 18:56
  • No it was not possible so i delete the previous entry and create new entry in network. – Malav Soni Nov 26 '15 at 05:07
  • I planned to do that, but wont that lose the service order that the user might set? – GP89 Nov 26 '15 at 11:18

0 Answers0