diff --git a/EguibarIT.psd1 b/EguibarIT.psd1 index f4ec39e..cc1e745 100644 --- a/EguibarIT.psd1 +++ b/EguibarIT.psd1 @@ -27,7 +27,7 @@ CompanyName = 'EguibarIT' # Copyright statement for this module - Copyright = 'All rights reserved (c) 2022 - EguibarIT.' + Copyright = 'All rights reserved (c) 2024 - EguibarIT.' # Description of the functionality provided by this module Description = 'Functions used to implement the Delegation Model with Tiers on the given Active Directory.' diff --git a/Enums/Enum.Constants.ps1 b/Enums/Enum.Constants.ps1 index 1e59425..d9ab090 100644 --- a/Enums/Enum.Constants.ps1 +++ b/Enums/Enum.Constants.ps1 @@ -14,9 +14,6 @@ SidRegEx = [RegEx]::new('^S-1-(0|1|2|3|4|5|16|59)-\d+(-\d+)*$') # Regular Expression (RegEx) for DistinguishedName - #DnRegEx = [RegEx]::new('^(?:(?CN=(?(?:[^,]+|\,)+)),)?(?:(?OU=(?:[^,]+|\,)+,?)*)(?DC=(?:[^,]+|\,)+)(?:,DC=(?:[^,]+|\,)+)*$') - #DnRegEx = [RegEx]::new('^(CN|OU|DC|O|L|ST|C|UID)=[^,=+<>#;"]+(,(CN|OU|DC|O|L|ST|C|UID)=[^,=+<>#;"]+)*$') - #DnRegEx = [RegEx]::new('^(?:[A-Za-z]{2}=[^,\\+<>#;]+(?:\\,[^,\\+<>#;]+)*,?)+$') DnRegEx = [RegEx]::new('^(?:(CN=(?(?:[^,\\]|\\.)+),)*)?(OU=(?(?:[^,\\]|\\.)+),)*(DC=(?(?:[^,\\]|\\.)+))(,DC=(?(?:[^,\\]|\\.)+))+?$') # Regular Expression (RegEx) for GUID @@ -32,7 +29,6 @@ $ asserts the end of the string. #> GuidRegEx = [RegEx]::new('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$') - } $Splat = @{