fix(catalog-backend-module-ldap): ignore search reference

Having search referrals in the response causes the processor to stop right now. Instead of throwing
an error they can simply be ignored and logged out.

Signed-off-by: Dominik Schwank <dominik.schwank@sda.se>
This commit is contained in:
Dominik Schwank
2022-03-08 16:39:41 +01:00
parent 9fce456176
commit f751e84572
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 => {