File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Server-Side Components/Script Includes/Convert base64 to Hex (Object GUID) Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 1+ ** Description:**
2+ This Script Include converts a Base64-encoded Active Directory (AD) Object GUID into its corresponding hexadecimal format.
3+ When importing AD objects from an on-premises directory using LDAP, the object GUIDs are typically stored in Base64 format.
4+ However, in OOB integrations such as the AD V2 Spoke, the GUID must be provided in hexadecimal format.
5+ This Script Include bridges that gap by decoding the Base64 string and converting it into the required hex representation.
6+
7+ ** Usage:**
8+ Can be used in the LDAP Transofrm scripts to convert the base64 code to HEX code
9+
10+ ** Sample:**
11+
12+ var base64Code ='ayn8QMpHEGezHQDdAQZi2g==';
13+ gs.print(new global.LDAP_AD_Utils().base64ToHex(base64Code));
14+
15+ ** Output:**
16+ 40fc296b-47ca-6710-b31d-00dd010662da
You can’t perform that action at this time.
0 commit comments