Can smbclient or libsmbclient do NetrShareEnum ?
Richard Sharpe
rsharpe at richardsharpe.com
Thu Sep 9 22:24:05 GMT 2004
On Thu, 9 Sep 2004, Rafal Szczesniak wrote:
> On Thu, Sep 09, 2004 at 02:54:04PM -0700, Richard Sharpe wrote:
> > On Thu, 9 Sep 2004, Rafal Szczesniak wrote:
> >
> > > On Thu, Sep 09, 2004 at 12:44:32PM -0700, David Wuertele wrote:
> > > > Rafal> I'm a bit surprised. In my case,
> > > > Rafal> nm libsmbclient.* | grep cli_srvsvc_net_share_enum
> > > > Rafal> yields expected result. Am I missing anything ?
> > > >
> > > > Downloaded 3.0.6 and verified your result. Must have changed since
> > > > 3.0.0.
> > >
> > > That might be. 3.0.0 is quite old to me :)
> > > Does that mean you have the function ie. what you needed ?
> >
> > I just did a grep in SAMBA_3_0/source/libsmb/*.c for cli_srvsvc and came
> > up empty.
>
> That's because the function is in SAMBA_3_0/source/rpc_client/*.c
> Object files from there are linked into libsmbclient.
Sure, I agree with that. However, I think that the right way to fix the
original problem is for libsmbclient to use the cli_srvsvc routines when
it is asked to do an opendir on smb://<server>/ and fall back to the
current RAP approach if the cli_srvsvc routine fails.
He should not have to code that stuff himself. The library should abstract
it out.
Actually, come to think of it, it might be interesting if a bunch of
the Win32 Netr and on on apis were implemented in libsmbclient or another
library.
Regards
-----
Richard Sharpe, rsharpe[at]richardsharpe.com, rsharpe[at]samba.org,
sharpe[at]ethereal.com, http://www.richardsharpe.com
More information about the samba-technical
mailing list