Skip to content

Commit 843ff9a

Browse files
Create README.md
1 parent 1bb5d45 commit 843ff9a

File tree

1 file changed

+16
-0
lines changed
  • Server-Side Components/Script Includes/Convert base64 to Hex (Object GUID)

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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

0 commit comments

Comments
 (0)