Skip to content

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

fix(ldap): enhance logging for LDAP referral handling in password rotation

Victor Hugo dos Santos7a357d26f96b
diff --git a/backend/src/ee/services/secret-rotation-v2/ldap-password/ldap-password-rotation-fns.ts b/backend/src/ee/services/secret-rotation-v2/ldap-password/ldap-password-rotation-fns.ts
index dd26e6eca7..e699821805 100644
--- a/backend/src/ee/services/secret-rotation-v2/ldap-password/ldap-password-rotation-fns.ts
+++ b/backend/src/ee/services/secret-rotation-v2/ldap-password/ldap-password-rotation-fns.ts
@@ -183,7 +183,10 @@ export const ldapPasswordRotationFactory: TRotationFactory<
}
referredUrl = buildReferralUrl(credentials.url, referralDomain);
- logger.info({ referralDomain, referredUrl }, "LDAP referral detected — chasing to referred domain controller");
+ logger.info(
+ { targetDn: dn, referralDomain, referredUrl, matchedDn: err.dn },
+ "LDAP referral detected — chasing to referred domain controller"
+ );
try {
await performModify({ ...connectionCredentials, url: referredUrl });