Bug 47579 - Add UMC system diagnostic check for orphaned GPO directories.
Add UMC system diagnostic check for orphaned GPO directories.
Status: RESOLVED INVALID
Product: UCS
Classification: Unclassified
Component: UMC - System diagnostic
UCS 4.3
Other Linux
: P5 enhancement (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on: 27468 44876
Blocks:
  Show dependency treegraph
 
Reported: 2018-08-13 11:51 CEST by Arvid Requate
Modified: 2018-08-13 16:29 CEST (History)
0 users

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2018-08-13 11:51:27 CEST
Support reported a case where the sysvol share of some servers still had Group policy Object (GPO) specific directories that were not referenced any longer in Samba/AD.

We should add a check for this as part of the UMC module "system diagnostic".
I'm not sure if it's best to implement this as a separate diagnostic check of it would be better for the user experience to adjust this existing plugin:


git/ucs/management/univention-management-console-module-diagnostic/umc/python/diagnostic/plugins/42_samba_tool_sysvolcheck.py





+++ This bug was initially created as a clone of Bug #44876 +++

Adds a new diagnostic check `samba_tool_sysvolcheck.py` which runs `samba-tool ntacl sysvolcheck`.
Comment 1 Arvid Requate univentionstaff 2018-08-13 12:00:34 CEST
Due to the multimaster LDAP replication between the Samba/AD Domain Controllers I guess the check would have to run ldbsearch (or ldapsearch) against all replicating domaincontrollers to find out if a given GPO really cannot be found anywhere (or if something is broken with the Samba/AD LDAP replication e.g.). Maybe we can learn something from

/usr/lib/python2.7/dist-packages/samba/netcmd/drs.py  function cmd_drs_showrepl

That's the code that implements the functionality for the command line:

samba-tool drs showrepl
Comment 2 Arvid Requate univentionstaff 2018-08-13 16:29:07 CEST
This bug report doesn't make sense because that's exactly what the cron job of Bug 27468 should take care of. I'll create a new bug that properly states the problem seen in Ticket #2018080821000514.