[PATCH] samba-tool schema attribute query_oc

William Brown william at blackhats.net.au
Mon May 14 04:03:57 UTC 2018


On Mon, 2018-05-14 at 15:09 +1200, Andrew Bartlett wrote:
> On Mon, 2018-05-14 at 13:02 +1000, William Brown wrote:
> > 
> > So that section you mention is documentation, not code. To be sure
> > of
> > what you are asking:
> > 
> > Do you want the documentation updated to match the bit positions?
> > 
> > Or are you asking that the command take the "named bit location"
> > and
> > then OR's the result to create the schema behaviour value? IE:
> 
> Yes.
> 
> > /usr/local/samba/bin/samba-tool schema attribute modify --
> > searchflags="fATTINDEX,fSUBTREEATTINDEX,fCONFIDENTIAL"
> > 
> > I suspect this is your request, but I want to be sure,
> 
> Correct, something like that.
> 
> Andrew Bartlett
> 

Thanks mate! I've done exactly this. The changes are in 0005-python-
samba-netcmd-schema.py-add-schema-query-and-m.patch

You'll also note I've updated the test cases to check for invalid
flags, wrong capitialisation, the --help is updated, and two extra
flags are added to ms_schema. 

Once again, the 6 patches attached (sorry, I forgot the trick you
showed me to get these into a single file)

Thank you,

William
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-python-samba-netcmd-schema.py-add-schema-show_oc-for.patch
Type: text/x-patch
Size: 5096 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180514/e2986a35/0006-python-samba-netcmd-schema.py-add-schema-show_oc-for-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-python-samba-netcmd-schema.py-add-schema-query-and-m.patch
Type: text/x-patch
Size: 18020 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180514/e2986a35/0005-python-samba-netcmd-schema.py-add-schema-query-and-m-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-python-samba-netcmd-group.py-add-group-show.patch
Type: text/x-patch
Size: 6027 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180514/e2986a35/0004-python-samba-netcmd-group.py-add-group-show-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-python-samba-netcmd-domain.py-add-configuration-cont.patch
Type: text/x-patch
Size: 10028 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180514/e2986a35/0003-python-samba-netcmd-domain.py-add-configuration-cont-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-python-samba-netcmd-forest.py-main.py-add-configurat.patch
Type: text/x-patch
Size: 11919 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180514/e2986a35/0002-python-samba-netcmd-forest.py-main.py-add-configurat-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-python-samba-netcmd-dsacl.py-support-display-and-rem.patch
Type: text/x-patch
Size: 18788 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180514/e2986a35/0001-python-samba-netcmd-dsacl.py-support-display-and-rem-0001.bin>


More information about the samba-technical mailing list