Re: How can I get WINS?
Re: How can I get WINS?
- Subject: Re: How can I get WINS?
- From: Kevin Arnold <email@hidden>
- Date: Fri, 7 May 2004 09:02:19 -0700
On May 7, 2004, at 5:35 AM, Quinn wrote:
>
At 2:32 +0400 4/5/04, Igor garnov wrote:
>
> Is it possible for an application run by a user without
>
> administrative privileges to GET the address of WINS, which is set in
>
> a "Directory Access" utility?
>
This leaves the question of which approach to take. Normally I'd
>
recommend calling an API, even an undocumented one, over reading a
>
private configuration file. However, in this case the 'private'
>
configuration file is, in fact, quite well known (it's
>
"/etc/smb.conf"). My instinct is to still to recommend the call, but
>
that decision is a lot harder to justify when the file has a "man"
>
page. So, *shrug*, I dunno.
Currently what the Directory Service SMB plugin does is parse the
/etc/smb.conf file for this information and updates it. It will also
periodically stat the file to determine if someone has manually edited
it and will re-read the contents. (This is in Panther)
That is probably the best place to get this data, particularly if you
only need it as read-only information. This file is the central
location for all samba tools and dameons to get their configuration
data (including the Directory Service SMB plugin).
Kevin
-- Kevin Arnold
-- Senior Software Engineer
-- Service Discovery Technologies
-- Directory Services Group
-- Apple Computer
-- And yes, I HAVE seen the show "The Wonder Years"...
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.