Setting system proxy configuration for all users

When defining system proxy from

system
preferences->network->proxies
It keeps the credentials in login keychain which is only good for current user, and I'd like to have seamless access for all users.


I want my app to be able to send http messages through proxy without providing credentials from my application which can run by many users.

my application uses NSURLSession and i set connectionProxyDictionary inside NSURLSessionConfiguration to be nil, so that the system proxy settings will be taken without re-inseting the credentials.


To do so, I intend to copy the proxy credentials (it kept under the category of internet password) from login to system keychain.


On the first time it did work, but when I change the proxy credentials and want to copy the item again, I got popup window with the following error :

An error has occurred. Unable to add an item to the current keychain. An invalid record was encountered.

I'm sure this record is not invalid because it was created by the proxy settings automatically, Perhaps anybody know how to resolve this issue ?

Setting system proxy configuration for all users
 
 
Q