Merge pull request #10070 from SDA-SE/fix/ldap-reference-log-warning

fix(catalog-backend-module-ldap): ignore search reference
This commit is contained in:
Fredrik Adelöw
2022-03-08 17:21:51 +01:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-backend-module-ldap': patch
---
Ignore search referrals instead of throwing an error.
@@ -95,7 +95,7 @@ export class LdapClient {
}
res.on('searchReference', () => {
reject(new Error('Unable to handle referral'));
this.logger.warn('Received unsupported search referral');
});
res.on('searchEntry', entry => {
@@ -154,7 +154,7 @@ export class LdapClient {
}
res.on('searchReference', () => {
reject(new Error('Unable to handle referral'));
this.logger.warn('Received unsupported search referral');
});
res.on('searchEntry', entry => {