Re: Network interface
Re: Network interface
- Subject: Re: Network interface
- From: Francois Reboursier <email@hidden>
- Date: Thu, 24 Jul 2003 13:04:01 +0200
On Thursday, Jul 24, 2003, at 10:47 Europe/Paris, Jean-Matthieu
Schaffhauser wrote:
I'm looking for a network API that could let me change my nic
informations.
I'd like to do things like list nic available on my system, changing
IP my
address, adding or removing aliases. Is there a simple Objective-C
programming interface for that matter ?
I don't see any easy way to do this in Cocoa. But if your app is
running on OS X Server, it could be a good bet to use NSTask to launch
the networksetup tool.
On another topic, my app requires to be run as root as it access file
readable
only by root. I didn't start looking for authentification method so I
would
greatly appreciate if anyone of you could give me hints on how to ask
You app must not be run as root: instead, it must (using the Security
API) check if the user has the necessary credentials to execute a
particular task, and if not try to obtain those credentials by
prompting the user for login & password.
The conceptual doc:
http://developer.apple.com/documentation/Security/Conceptual/
authorization_concepts/index.html
Take a look at the Authorization Services Reference:
http://developer.apple.com/documentation/Security/Reference/
authorization_ref/index.html
and particularly the functions AuthorizationCreate() &
AuthorizationCopyRights().
Francois.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.