svn commit: samba r22134 - in branches/SAMBA_4_0: .
source/script/tests
derrell at samba.org
derrell at samba.org
Mon Apr 9 01:32:26 GMT 2007
jelmer at samba.org writes:
> Author: jelmer
> Date: 2007-04-09 00:53:05 +0000 (Mon, 09 Apr 2007)
> New Revision: 22134
>
> WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22134
>
> Log:
> Create different smb.conf file for the client side. This should make use with Samba 3 or windows easier as well as environments.
Hi Jelmer,
I'm not quite sure what you have in mind, and I don't know if this is
relevant, but just in case...
In libsmbclient, we care about client-side configuration which may differ from
the server configuration. Here, in pseudo code, is what it does:
// Try to load a personal smb.conf file
if (lp_load($HOME/.smb/smb.conf) != SUCCESS)
{
// If that failed, try to load the system smb.conf file
if (lp_load(dyn_CONFIGFILE) == SUCCESS)
{
// If that succeeded, allow local changes by appending settings
// in their personal smb.conf.append file.
lp_load($HOME/.smb/smb.conf.append)
}
}
This handles the case where one wants to have their own entire smb.conf file,
but also where the system-wide smb.conf file should be used but a few changes
to its settings made for client use in smb.conf.append.
Cheers,
Derrell
More information about the samba-technical
mailing list