[PATCH 1/1] Extended share names

Amin Azez azez at ufomechanic.net
Fri Jan 11 14:02:47 GMT 2008

[With some changes, fixes and additional explanation suggested by metze]

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).

\\name and \\name.domain are useful for backends like cifs and proxy
pass the actual share request to the proxied server, and so don't need
to have a config entry for each actual remote share.

"*" 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 |   67
 2 files changed, 73 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 49cb89edb911519af47d37d30aeaef64eaeae763.diff
Type: text/x-patch
Size: 5164 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20080111/00f1c634/49cb89edb911519af47d37d30aeaef64eaeae763.bin

More information about the samba-technical mailing list