Skip to content

Commit cc5b7fa

Browse files
committed
change default AD attribute
1 parent 0198b43 commit cc5b7fa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src-tauri/resources-windows/fragments/provisioning.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<!-- Define public properties that can be passed to the MSI -->
1010
<Property Id="PROVISIONING" Secure="yes"/>
11-
<Property Id="ADATTRIBUTE" Value="extensionAttribute1"/>
11+
<Property Id="ADATTRIBUTE" Value="defguardProvisioningConfig"/>
1212

1313
<!-- Custom action to run the PowerShell script -->
1414
<CustomAction Id="RunProvisioningScript"

src-tauri/resources-windows/scripts/Get-ProvisioningConfig.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
.DESCRIPTION
88
This script detects whether the computer is joined to on-premises Active Directory
99
or Entra ID (Azure AD), then fetches Defguard provisioning data (URL and enrollment token) from the appropriate source.
10-
- On-premises AD: Reads from extensionAttribute1 and extensionAttribute2
10+
- On-premises AD: Reads from specified attribute (default: defguardProvisioningConfig)
1111
- Entra ID: Reads from custom security attributes under the 'Defguard' set
1212
- Workgroup: Exits gracefully
1313
The retrieved enrollment data is saved to a JSON file for the Defguard client to use.
1414
1515
.PARAMETER ADAttribute
16-
Specifies which Active Directory attribute to read from (default: extensionAttribute1)
16+
Specifies which Active Directory attribute to read from (default: defguardProvisioningConfig)
1717
#>
1818

1919
param(
20-
[string]$ADAttribute = "extensionAttribute1"
20+
[string]$ADAttribute = "defguardProvisioningConfig"
2121
)
2222

2323
# Check device join status

0 commit comments

Comments
 (0)