cyberark / Secret-Manager-formerly-AAM

Apache License 2.0
0 stars 6 forks source link

Double postfix in function Edit-PlatformINIFile #2

Open Benvandamme opened 2 years ago

Benvandamme commented 2 years ago

Hello,

we tried to use the DualAccount-Script but ran into following error

2:30:52,547 DEBUG [31] Administrator BB590 ffd85082-ce96-4154-b60a-fd406f92f99a System.Exception: Failed to import platform (Reason: platform ID in XML file doesn't match platform ID in INI file.)

https://github.com/cyberark/Secret-Manager-formerly-AAM/blob/4f8c5b35adebb52cf3c46b271e802a443b36ff7f/Dual%20Account%20Script/DualAccount-Creation.ps1#L1201

The value for policyID in the ini got another postfix in line 1201 which the same Value for the xml does not. I removed the line to fix this.

Benvandamme commented 2 years ago

The error happens only when platformid and platformname have the same values.