[Samba] Building rpcclient statically linked?

pisymbol pisymbol at gmail.com
Wed Jun 20 22:59:39 UTC 2018


On Tue, Jun 19, 2018 at 5:07 PM, Andrew Bartlett <abartlet at samba.org> wrote:

> On Tue, 2018-06-19 at 12:41 -0400, pisymbol wrote:
> >
> >
> > On Tue, Jun 19, 2018 at 5:31 AM, pisymbol <pisymbol at gmail.com> wrote:
> > >
> > > On Mon, Jun 18, 2018 at 11:36 PM, Andrew Bartlett <abartlet at samba.org>
> wrote:
> > > > On Mon, 2018-06-18 at 15:56 -0400, pisymbol wrote:
> > > > > I have a binary based off of rpclient that prints out the raw share
> > > > > SD as a binary stream instead of trying to parse it into human
> > > > > readable format (the default behavior). That is what I'm after.
>
> The Python would give you an SD object that you can do what you want
> with, either pack it again in NDR, endode it into SDDL or inspect it
> manually.
>
> > > > > Hopefully that makes more sense.
> > > >
> > > > Personally I would do that with our python bindings.
> > > >
> > >
> > > i would be thrilled to get the Python stuff working.
> > >
> >
> >
> > https://bugzilla.samba.org/show_bug.cgi?id=10028
>
> This is just about complete Python3 support.  Python2 works fine with
> Python 2.6 or later (but please, please use 2.7), and the RPC stuff
> probably works with Python3.
>
> > AFAICT, it's not officially supported yet, right?
>
> No, these are part of the APIs we support
>
> > i.e. it's in major flux.
>
> There isn't major flux, and existing scripts should keep working with
> the Python3 work.
>
> > But I could be misrepresenting the current state of python API/bindings
> for samba.
>
> Please take a look again.
>
> In terms of how to use it, there are some good examples now in the
> traffic_runner tool and the tests for auth_audit.
>
> While the particular interface you want is probably not previously
> used, other examples should help you pattern it.
>
>
Alright, I'll take a closer look.

Thanks!

-aps


More information about the samba mailing list