[Samba] Building rpcclient statically linked?

Andrew Bartlett abartlet at samba.org
Tue Jun 19 21:07:10 UTC 2018


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.

Thanks,

Andrew Bartlett

-- 
Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba




More information about the samba mailing list