-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fixed] Parse GPO ignoring when registry policy name is not Registry.…
…pol (#1102) Currently, if the registry policy name file is not exactly `Registry.pol` the AD parse GPO does not find it, ignoring it. However, there are cases where the registry file name is `registry.pol` for a GPO as reported in issue #1098. In this pull request the implementation lists the files in the policy class directory and looks for the `registry.pol` file ignoring the case. If the file is found it's parsed, otherwise the policy is ignored.
- Loading branch information
Showing
8 changed files
with
145 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
internal/ad/testdata/AD/SYSVOL/gpoonly.com/Policies/lowercase-registry/GPT.INI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[General] | ||
Version=1000 | ||
displayName=New Group Policy Object |
Binary file added
BIN
+350 Bytes
internal/ad/testdata/AD/SYSVOL/gpoonly.com/Policies/lowercase-registry/Machine/registry.pol
Binary file not shown.
Binary file added
BIN
+350 Bytes
internal/ad/testdata/AD/SYSVOL/gpoonly.com/Policies/lowercase-registry/User/registry.pol
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
internal/ad/testdata/AD/SYSVOL/gpoonly.com/Policies/mixedcase-registry/GPT.INI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[General] | ||
Version=1000 | ||
displayName=New Group Policy Object |
Binary file added
BIN
+350 Bytes
internal/ad/testdata/AD/SYSVOL/gpoonly.com/Policies/mixedcase-registry/Machine/reGIStry.pol
Binary file not shown.
Binary file added
BIN
+350 Bytes
internal/ad/testdata/AD/SYSVOL/gpoonly.com/Policies/mixedcase-registry/User/reGIStry.pol
Binary file not shown.