Hi
I'm writing an MAC OS application, in which trying to modify DNS settings of network interfaces. Using SCPreferences refrence for accessing and modifying configuration preferences.
Using SCPreferencesLock API to lock preferences object after getting SCPreferencesRef object created by SCPreferencesCreateWithAuthorization API.
After SCNetworkProtocolSetConfiguration API, calling SCPreferencesUnlock, SCPreferencesCommitChanges & SCPreferencesApplyChanges.
Using above APIs in sequence results in modification of DNS settings as expected, but promting user to enter admin password.
Queries:
1. Is there a way to bypass prompting admin password.
2. Any other APIs to acheive similar functionality without prompt for admin password.
Thanks in advance.