It appears that 'smbclient -L' is not able to view shares on an NT
server (or above) that are created with a space in the name, although it
is possible to access these shares if the name is given explicitly.  The
reason is that NT, 2K, and XP will not return these shares in response
to a NetShareEnum, presumably because (as a warning under NT suggests
when creating such a share) DOS clients will be confused by such share
names.

Windows clients get around this by doing a NetrShareEnum call on
\SRVSVC instead.  Samba also implements this functionality, but the
necessary code is not linked into smbclient.

Should it be?  It seems easy enough to link it in, but so far smbclient
doesn't include any RPC code.  Is it better to recommend that people use
one of the other RPC-aware tools (e.g., 'net share')?  In that case,
what should be done for libsmbclient, which also has this problem?

-- 
Steve Langasek
postmodern programmer

Attachment: msg05049/pgp00000.pgp
Description: PGP signature

Reply via email to