Merge pull request #30221 from ganievs/feature/export-ldap-vendor-types

export vendor types for testing custom transformers
This commit is contained in:
Fredrik Adelöw
2025-06-17 14:18:02 +02:00
committed by GitHub
3 changed files with 37 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-backend-module-ldap': patch
---
Export LDAP vendor types and instances for testing custom transformers
@@ -275,4 +275,14 @@ export type VendorConfig = {
dnAttributeName?: string;
uuidAttributeName?: string;
};
// @public
export const vendors: {
readonly activeDirectory: LdapVendor;
readonly aeDir: LdapVendor;
readonly freeIpa: LdapVendor;
readonly googleLdap: LdapVendor;
readonly lldap: LdapVendor;
readonly default: LdapVendor;
};
```
@@ -13,6 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {
ActiveDirectoryVendor,
AEDirVendor,
DefaultLdapVendor,
FreeIpaVendor,
GoogleLdapVendor,
LdapVendor,
LLDAPVendor,
} from './vendors';
export { LdapClient } from './client';
export { mapStringAttr } from './util';
@@ -37,3 +46,16 @@ export {
readLdapOrg,
} from './read';
export type { GroupTransformer, UserTransformer } from './types';
/**
* An LDAP Vendor types.
*
* @public
*/
export const vendors = {
activeDirectory: ActiveDirectoryVendor as LdapVendor,
aeDir: AEDirVendor as LdapVendor,
freeIpa: FreeIpaVendor as LdapVendor,
googleLdap: GoogleLdapVendor as LdapVendor,
lldap: LLDAPVendor as LdapVendor,
default: DefaultLdapVendor as LdapVendor,
} as const;