Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

chore: expand comment for limitations

Scott Wilson7f06b619a74b
diff --git a/backend/src/ee/services/ldap-config/ldap-fns.ts b/backend/src/ee/services/ldap-config/ldap-fns.ts
index e1061b196c..24b1b3ad26 100644
--- a/backend/src/ee/services/ldap-config/ldap-fns.ts
+++ b/backend/src/ee/services/ldap-config/ldap-fns.ts
@@ -109,6 +109,11 @@ export const testLDAPConfig = async (ldapConfig: TTestLDAPConfigDTO): Promise<bo
/**
* Extract the value of the first CN RDN from an LDAP DN string.
* RFC 4514 attribute types are case-insensitive.
+ *
+ * Expects the ldapjs DN.toString() serialization, which hex-escapes commas
+ * inside values (\2c), so splitting on "," cannot cut a value in half. A raw
+ * RFC 4514 string using the alternative `\,` escape form would be split
+ * mid-value; do not pass DNs from other sources.
*/
export const extractCnFromDn = (dn: string): string | undefined => {
const cnRdn = dn