Can smbclient or libsmbclient do NetrShareEnum ?

David Wuertele dave-gnus at
Wed Sep 8 17:40:42 GMT 2004

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()?

More information about the samba-technical mailing list