Re: NetInfo Modification
Re: NetInfo Modification
- Subject: Re: NetInfo Modification
- From: Oleg Svirgstin <email@hidden>
- Date: Fri, 31 Oct 2003 08:44:29 +0300
Hi Mark,
I would go the Open Directory route...
I would recommend "Core Mac OS X and Unix Programming" by Mark Dalrymple
and Aaron Hillegass, ISBN 0-9740785-0-6. (It was very expensive few months
ago when I bought it - almost 100$!)
There is a chapter called "Directory Services" that is not quite good...
Better than nothing. With the sources (it is an open source framework
published at Darwin depository), Apple documentation and a good deal of time
under the hand one can make friends with it.
After a good fight Open Directory + NetInfo started to do what I wanted from
them. My code is not within my reach currently.
Framework docs and the book publish some sample code. It is more or less
complete.
NetInfo is said to become deprecated, and I did not find any decent detailed
documentation on it. It still works. More: using Open Directory, we work
with the same NetInfo through "universal" calls, and the code will probably
require less modifications when another big thing happens.
To add or edit anything one has to authorize against the database node etc.
It is not that hard - samples show how to do it. The most problematic part
was to authorize the newborn entry-points to make them capable to log in.
I think you will find a better source of information before I get my source
codes back.
I did it under 10.2, and it was not perfect: probably, 10.3 is easier to
code in that part.
Lots of people will tell it is not a Cocoa topic...
I think it IS, since Mac OS X is the most powerful and paradox mix in the
history of computing, with incredible wealth of "natural resources" under
the hood (Darwin, Carbon, various frameworks etc...). Cocoa is the most
natural tool to join all these different parts together in a consistent
application. IMHO, all Mac OS X programming topics belong to Cocoa...
I would also suggest looking at the darwin forums...
Best regards
Oleg
>
From: Mark Weinstein <email@hidden>
>
Date: Thu, 30 Oct 2003 17:45:30 -0800
>
To: email@hidden
>
Subject: NetInfo Modification
>
>
Hello. I am working on an app that will require me to edit and add
>
entries into the NetInfo database. Does anyone have any
>
recommendations as to the best way to develop for this? Should I work
>
with the command line utilities or the Directory API that is available.
>
>
Does anyone have any example code that might help me?
>
>
Thanks.. Mark
>
_______________________________________________
>
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.
_______________________________________________
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.