Can smbclient or libsmbclient do NetrShareEnum ?

Rafal Szczesniak mimir at
Thu Sep 9 06:38:01 GMT 2004

On Wed, Sep 08, 2004 at 11:30:07AM -0700, Richard Sharpe wrote:
> 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 didn't say libsmblient contains any sort of API to easily call MSRPC
function. I said it includes this specific function to call

Rafal Szczesniak
Samba Team member

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url :

More information about the samba-technical mailing list