Skip to content

Commit b0ca76c

Browse files
authored
Merge pull request #9 from HerrHozi/main
Update LDAP path to include server variable
2 parents d2b75bb + e96bbe9 commit b0ca76c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ADCSGoat/Public/Set-AGTemplateAce.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function Set-AGTemplateAce {
6666
process {
6767
Write-Output $TemplateName -PipelineVariable name | ForEach-Object {
6868
$success = $false
69-
$TemplateObject = New-Object System.DirectoryServices.DirectoryEntry("LDAP://CN=$name,$TemplateContainer")
69+
$TemplateObject = New-Object System.DirectoryServices.DirectoryEntry("LDAP://$Server/CN=$name,$TemplateContainer")
7070

7171
while (-not $success) {
7272
# Get the current ACL

0 commit comments

Comments
 (0)