Re: NetInfo -> Directory Services
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com So: dscl localhost -list NetInfo/Config/dhcp/subnets Giuliano _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... At 5:10 pm -0800 2005/03/29, Ryan McGann wrote: I'm trying to convert my use of NetInfo APIs to Directory Services APIs, and I'm having problems. I want to access the DHCP information added by Internet Sharing, which is stored in NetINnfo at /config/dhcp/subnets. However, dscl consistently complains that /config/dhcp/subnets is an invalid path. To duplicate: 1. Turn on Internet Sharing in Mac OS X (System Preferences -> Sharing -> Internet) 2. From Terminal, query Directory Services: dscl localhost -list /NetInfo/config/dhcp/subnets In the NetInfo Admin Utility you can see that this path exists and has children, so why can't Directory Services see them? because you should have run the command in interactive mode and found out that you don't need the leading /. Thanks for reminding me of this tool!! dscl localhost is a nice thing! (BTW, if you do dscl . you end up in the local netinfo directly). This email sent to site_archiver@lists.apple.com
participants (1)
-
Giuliano Gavazzi