Extended share names to include \\server name
For some share backends, like proxy, where the actual shares are
devised at runtime to represent those that exist on another server,
it's nice to automatically create shares based on 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:
\\name.domain\share
\\name\share
\\name.domain
\\name
share
*
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 that
pass the actual share request to the proxied server, and so don't need
to have an actual config entry for each actual remote share.
("*" is a literal *, i.e. [*] in the ini file)
if "extended share names" is disabled then only
share
is checked, as before.
Unless extra \\ or * shares are defined, it will be harmless to enable
extended share names.