Can smbclient or libsmbclient do NetrShareEnum ?

Rafal Szczesniak mimir at samba.org
Thu Sep 9 06:41:58 GMT 2004


On Wed, Sep 08, 2004 at 10:40:42AM -0700, David Wuertele wrote:
> Rafal> Yes, this function is implemented. Take a look at
> Rafal> rpc_client/cli_srvsvc.c file. Find function
> Rafal> cli_srvsvc_net_share_enum(). That's what you're looking
> Rafal> for. Obviously, you have to learn how to properly call this
> Rafal> function, if you haven't ever done it yet (ie. establish smb
> Rafal> session, open named pipe, etc.).
> 
> Are you sure this is NetrShareEnum and not NetShareEnum (Note the
> extra "r" in the former)?  If so, why name the function
> cli_srvsvc_net_share_enum() and not cli_srvsvc_net_r_share_enum()?

Yes. The former is MSRPC call which is implemented in rpc_client/cli_srvsvc.c
while the latter is a RAP call and is implemented in libsmb/clirap.c,
though the naming isn't especially fortunate. Looks like these
subtleties have been discovered after the functions written.


cheers,
-- 
Rafal Szczesniak
Samba Team member  http://www.samba.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/samba-technical/attachments/20040909/bdb4d272/attachment.bin


More information about the samba-technical mailing list