libsmbclient and smb.conf
sharpe at ns.aus.com
Fri Jan 5 23:33:28 GMT 2001
I know that there has been some discussion on this topic, and I have not
had too much to say so far ...
My hopes as far as libsmbclient are concerned are the following:
1. pull in $HOME/.smb/smb.conf
2. If that fails, pull in /etc/smb.conf (or the global one)
3. Allow the user to provide an override, that vectors all the lp_xxx
functions to their callback.
Now, at the moment, the only parameters that I think I need are in the
global section anyway, so I don't see a need to introduce a separate section.
Also, at the moment, the only file I get is $HOME/.smb/smb.conf. Providing
a fallback is complicated because the code in Samba does no more than tell
you whether or not loading the parameters succeeded, which makes life hard.
I have to figure out whether or not I want to try to change that part of
Samba so that we can figure out what the problems were.
Finally, allowing users to override parameter stuff is really hard because
of the way that this is done in Samba, with all parameters being accessed
via functions. I will have to add one more level of indirection :-)
Richard Sharpe, sharpe at ns.aus.com
Samba (Team member, www.samba.org), Ethereal (Team member, www.zing.org)
Contributing author, SAMS Teach Yourself Samba in 24 Hours
Author, Special Edition, Using Samba
More information about the samba-technical