diff --git a/sugoi-api-ldap-store-provider/src/main/java/fr/insee/sugoi/store/ldap/LdapReaderStore.java b/sugoi-api-ldap-store-provider/src/main/java/fr/insee/sugoi/store/ldap/LdapReaderStore.java index de49eec3..e3d07adf 100644 --- a/sugoi-api-ldap-store-provider/src/main/java/fr/insee/sugoi/store/ldap/LdapReaderStore.java +++ b/sugoi-api-ldap-store-provider/src/main/java/fr/insee/sugoi/store/ldap/LdapReaderStore.java @@ -323,7 +323,7 @@ private Filter getFilterFromObject( return LdapFilter.and( Arrays.asList( LdapFilter.and(objectClassListFilter), - searchType.equals("AND") + searchType.equalsIgnoreCase("OR") ? LdapFilter.or(attributeListFilter) : LdapFilter.and(attributeListFilter))); }