Can smbclient or libsmbclient do NetrShareEnum ?

Rafal Szczesniak mimir at
Thu Sep 9 18:06:46 GMT 2004

On Thu, Sep 09, 2004 at 10:22:30AM -0700, David Wuertele wrote:
> Rafal> I didn't say libsmblient contains any sort of API to easily
> Rafal> call MSRPC function. I said it includes this specific function
> Rafal> to call NetrShareEnum.
> I found the cli_srvsvc_net_share_enum() function, but it is not in
>  I looked in the Makefile and the file that
> cli_srvsvc_net_share_enum() is not getting built by default, and when
> it is getting built it is not built as part of, but
> libmsrpc.a.  I could add the libmsrpc.a objects to,
> but it sounds like you're saying the functionality is in
> already.

What version of Samba we're talking about ? All told applied to SAMBA_3_0
(as in svn repository) and nothing'd changed in this field for a couple
of last releases. So, you should have rpc_client files linked in

> I don't care if the API is easy to use, I'm ready to try anything.
> Where should I look in libsmbclient to find the NetrShareEnum
> function?

I'm a bit surprised. In my case,
  nm libsmbclient.* | grep cli_srvsvc_net_share_enum

yields expected result. Am I missing anything ?

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