GPO Backup and Restore: Difference between revisions

From SambaWiki
Line 30: Line 30:
make test TESTS=samba_tool.gpo
make test TESTS=samba_tool.gpo
</pre>
</pre>

''<Anything else notable about running the tests...>''


=== Where the code is located ===
=== Where the code is located ===

Revision as of 02:11, 20 March 2019

Overview

Added in Samba version: 4.10

<What does the feature do, Why might users care about it, What is the Microsoft-equivalent that a Windows admin might be familiar with, etc>

How to configure it

<Just reference the relevant samba-tool/smb.conf options (your man-page/help documentation should already be clear enough)>

Known issues and limitations

<Any outstanding bugs, configurations not supported, etc>

https://bugzilla.samba.org/show_bug.cgi?id=13825

https://bugzilla.samba.org/show_bug.cgi?id=13806

https://bugzilla.samba.org/show_bug.cgi?id=13627

Troubleshooting

<What debug level do you need to run to see messages of interest. Are there any other ways to verify the feature is doing what it should>

For Developers

How to test it

make test TESTS=samba_tool.gpo

Where the code is located

The core parsing logic for GPO is in the python gp_parse module.

The outer logic lives in netcmd/gpo.py (where the actual regex matching used to identify which parser is used) and the tests are all in the samba_tool gpo.py tests.

Note: The parser for PReg .pol files is auto-generated from IDL.

Reference Docs

[MS-GPOD] and [MS-GPOD] describe an overview of how the overall Group Policy system works. Individual references to which file formats correspond to which parsers lives in the comments of each parser class in gp_parse.