Skip to content

smb.conf Group Policy via admx server side, and pol file processing client side

These patches are rather complicated, but are meant to follow a couple of standards to make these easy for windows admins to use. You can read more about admx here: https://msdn.microsoft.com/en-us/library/bb530196.aspx And about pol files here: https://msdn.microsoft.com/en-us/library/windows/desktop/aa374407(v=vs.85).aspx

The admx files, when installed to the central store in the sysvol, add smb.conf options to the Group Policy Management Editor (gpme). Screenshot_from_2018-07-18_11-41-33

Which when these settings are set, create a file on the sysvol called Registry.pol. Screenshot_from_2018-07-18_11-48-14

The gp_pol_ext.read() function then parses the Registry.pol file and generates output like this: {u'Software\Policies\Samba\smb_conf': {u'template homedir': u'/home/samba/%D/%U', u'apply group policies': 1, u'ldap timeout': 9999}, u'Software\Policies\Examples': {u'Example2Checkbox1': 1, u'Example2Checkbox2': 0}}

Edited by David Mulder

Merge request reports