From 7205dcfeea678c2b995eac733c13cbc8205aebf1 Mon Sep 17 00:00:00 2001 From: Sylinsic <38617929+Sylinsic@users.noreply.github.com> Date: Wed, 24 Jan 2024 11:11:46 +0000 Subject: [PATCH] [LDAP-42] Pull the special name for any objects into a seperate string (#24) --- .../tirasa/connid/bundles/ldap/schema/LdapSchemaMapping.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/tirasa/connid/bundles/ldap/schema/LdapSchemaMapping.java b/src/main/java/net/tirasa/connid/bundles/ldap/schema/LdapSchemaMapping.java index 6743334..7b7a7ce 100644 --- a/src/main/java/net/tirasa/connid/bundles/ldap/schema/LdapSchemaMapping.java +++ b/src/main/java/net/tirasa/connid/bundles/ldap/schema/LdapSchemaMapping.java @@ -85,7 +85,9 @@ public class LdapSchemaMapping { // XXX should the naming attribute be present in the schema (e.g. "cn" for account)? // XXX need a method like getAttributesToReturn(String[] wanted); // XXX need to check that (extended) naming attributes really exist. - public static final ObjectClass ANY_OBJECT_CLASS = new ObjectClass(ObjectClassUtil.createSpecialName("ANY")); + public static final String ANY_OBJECT_NAME = ObjectClassUtil.createSpecialName("ANY"); + + public static final ObjectClass ANY_OBJECT_CLASS = new ObjectClass(ANY_OBJECT_NAME); /** * The LDAP attribute to map to {@link Name} by default.