[PATCH 1/1] Extended share names

Amin Azez azez at ufomechanic.net
Thu Jan 10 14:28:48 GMT 2008

For some share backends, like proxy, where the actual shares are
devised at runtime, it's nice to define a share-template that
holds the relevant defaults.

This allows vfs_cifs or vfs_proxy backends to use a different
netbios alias for each server being proxied, so that one smbd
instance and machine account can proxy for lots of servers.

Extended share names allows shares to be defined to include a
netbios name as part of the share name contained in [ ] in the
ini file (or equivalent in the config).

if "extended share names" is enabled, then When make_connection()
tries to load the share section from the config it will check in
this order for:
where "name.domain" is the full actual server name provided by the client,
and "name" is the name truncated at the first dot (if any).

"*" is a literal *, i.e. [*] in the ini file.

if "extended share names" is disabled then only
is checked, as before

Signed-off-by: Amin Azez <azez at ufomechanic.net>
 source/param/loadparm.c         |    8 +++++
 source/smb_server/smb/service.c |   57
 2 files changed, 63 insertions(+), 2 deletions(-)

Do all netbios clients provide the servername, or should I also
interpolate the listended ip address as a share name, so that in such
environments each alias can have a different ip address?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 945567e8c05a4bb03f5231f0c212ba5f58dc5f22.diff
Type: text/x-patch
Size: 4833 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20080110/95cff372/945567e8c05a4bb03f5231f0c212ba5f58dc5f22.bin

More information about the samba-technical mailing list