Can smbclient or libsmbclient do NetrShareEnum ?

Richard Sharpe rsharpe at
Wed Sep 8 18:30:07 GMT 2004

On Wed, 8 Sep 2004, 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()?

I do not think that libsmbclient (or even the libsmb code) calls any RPC
client functions at this stage.

I think it would be easier to do with Samba 4.

Richard Sharpe, rsharpe[at], rsharpe[at],

More information about the samba-technical mailing list