GPO Backup and Restore

From SambaWiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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

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

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 .pol files is auto-generated from IDL.)

Reference Docs

<E.g. Microsoft specification/section that describes the feature in more detail>