Skip to content

Commit

Permalink
Use a more suggestive name for the GPO server URL
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielNagy committed Oct 26, 2023
1 parent 84d97bf commit 3d082d7
Show file tree
Hide file tree
Showing 21 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion internal/ad/adsys-gpolist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func TestAdsysGPOList(t *testing.T) {
tc.objectClass = "user"
}
if tc.url == "" {
tc.url = "ldap_url"
tc.url = "adcontroller.example.com"
}

// Ticket creation for mock
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
RnDDepBlockInheritance GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/RnDDepBlockInheritance_GPO
RnDDepBlockInheritance GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/RnDDepBlockInheritance_GPO
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Searching for account failed with: Failed to find account hostnameWithTruncatedLongName
ITDep1 GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/ITDep1_GPO
IT GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/IT_GPO
Default Domain Policy smb://ldap_url/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
ITDep1 GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/ITDep1_GPO
IT GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/IT_GPO
Default Domain Policy smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
6 changes: 3 additions & 3 deletions internal/ad/testdata/TestAdsysGPOList/golden/disabled_gpos
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
RnDDep3 GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/RnDDep3_GPO
RnD GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/RnD_GPO
Default Domain Policy smb://ldap_url/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
RnDDep3 GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/RnDDep3_GPO
RnD GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/RnD_GPO
Default Domain Policy smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
RnD GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/RnD_GPO
Default Domain Policy smb://ldap_url/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
RnD GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/RnD_GPO
Default Domain Policy smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
IT GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/IT_GPO
Default Domain Policy smb://ldap_url/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
IT GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/IT_GPO
Default Domain Policy smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
RnDDep2 Forced GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/RnDDep2_Forced_GPO
SubBlocked GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/SubBlocked_GPO
SubDep2BlockInheritance GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/SubDep2BlockInheritance_GPO
RnDDep2 Forced GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/RnDDep2_Forced_GPO
SubBlocked GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/SubBlocked_GPO
SubDep2BlockInheritance GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/SubDep2BlockInheritance_GPO
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
RnDDep2 Forced GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/RnDDep2_Forced_GPO
SubDep2ForcedPolicy Forced GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/SubDep2ForcedPolicy_Forced_GPO
RnDDep2 GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/RnDDep2_GPO
RnD GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/RnD_GPO
Default Domain Policy smb://ldap_url/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
RnDDep2 Forced GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/RnDDep2_Forced_GPO
SubDep2ForcedPolicy Forced GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/SubDep2ForcedPolicy_Forced_GPO
RnDDep2 GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/RnDDep2_GPO
RnD GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/RnD_GPO
Default Domain Policy smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Default Domain Policy smb://ldap_url/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
Default Domain Policy smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ITDep1 GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/ITDep1_GPO
IT GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/IT_GPO
Default Domain Policy smb://ldap_url/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
ITDep1 GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/ITDep1_GPO
IT GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/IT_GPO
Default Domain Policy smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
6 changes: 3 additions & 3 deletions internal/ad/testdata/TestAdsysGPOList/golden/machine_gpos
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ITDep1 GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/ITDep1_GPO
IT GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/IT_GPO
Default Domain Policy smb://ldap_url/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
ITDep1 GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/ITDep1_GPO
IT GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/IT_GPO
Default Domain Policy smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
RnDDep1 GPO1 smb://ldap_url/SYSVOL/gpoonly.com/Policies/RnDDep1_GPO1
RnDDep1 GPO2 smb://ldap_url/SYSVOL/gpoonly.com/Policies/RnDDep1_GPO2
RnD GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/RnD_GPO
Default Domain Policy smb://ldap_url/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
RnDDep1 GPO1 smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/RnDDep1_GPO1
RnDDep1 GPO2 smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/RnDDep1_GPO2
RnD GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/RnD_GPO
Default Domain Policy smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Default Domain Policy smb://ldap_url/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
Default Domain Policy smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Default Domain Policy smb://ldap_url/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
Default Domain Policy smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Default Domain Policy smb://ldap_url/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
Default Domain Policy smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
NogPOptions GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/NogPOptions_GPO
Default Domain Policy smb://ldap_url/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
NogPOptions GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/NogPOptions_GPO
Default Domain Policy smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
4 changes: 2 additions & 2 deletions internal/ad/testdata/TestAdsysGPOList/golden/return_hierarchy
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
RnD GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/RnD_GPO
Default Domain Policy smb://ldap_url/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
RnD GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/RnD_GPO
Default Domain Policy smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Default Domain Policy smb://ldap_url/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
Default Domain Policy smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
RnD GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/RnD_GPO
Default Domain Policy smb://ldap_url/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
RnD GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/RnD_GPO
Default Domain Policy smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
RnD GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/RnD_GPO
Default Domain Policy smb://ldap_url/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
RnD GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/RnD_GPO
Default Domain Policy smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Failed to fetch gpo object with nTSecurityDescriptor RnDDep4_Security_descriptor_missing_GPO

RnD GPO smb://ldap_url/SYSVOL/gpoonly.com/Policies/RnD_GPO
Default Domain Policy smb://ldap_url/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}
RnD GPO smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/RnD_GPO
Default Domain Policy smb://adcontroller.example.com/SYSVOL/gpoonly.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}

0 comments on commit 3d082d7

Please sign in to comment.