diff --git a/core/src/main/java/org/springframework/ldap/core/LdapTemplate.java b/core/src/main/java/org/springframework/ldap/core/LdapTemplate.java index 9097019f..c830cbc1 100644 --- a/core/src/main/java/org/springframework/ldap/core/LdapTemplate.java +++ b/core/src/main/java/org/springframework/ldap/core/LdapTemplate.java @@ -1424,7 +1424,7 @@ public class LdapTemplate implements LdapOperations, InitializingBean { List result = search(base, filter, new LdapEntryIdentificationContextMapper()); if (result.size() != 1) { log.error("Unable to find unique entry matching in authentication; base: '" + base + "'; filter: '" - + filter + "'. Found " + result.size() + " mathching entries"); + + filter + "'. Found " + result.size() + " matching entries"); return false; } diff --git a/samples/samples-utils/src/test/resources/log4j.properties b/samples/samples-utils/src/test/resources/log4j.properties new file mode 100644 index 00000000..7620b40d --- /dev/null +++ b/samples/samples-utils/src/test/resources/log4j.properties @@ -0,0 +1,7 @@ +log4j.rootCategory=INFO, stdout + +log4j.appender.stdout=org.apache.log4j.ConsoleAppender +log4j.appender.stdout.layout=org.apache.log4j.PatternLayout +log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - <%m>%n + +log4j.logger.org.apache.directory=ERROR diff --git a/test/integration-tests/src/test/resources/log4j.properties b/test/integration-tests/src/test/resources/log4j.properties index ee4b44e7..43af6587 100644 --- a/test/integration-tests/src/test/resources/log4j.properties +++ b/test/integration-tests/src/test/resources/log4j.properties @@ -6,4 +6,7 @@ log4j.appender.stdout.layout=org.apache.log4j.PatternLayout # Enable info on Spring LDAP #log4j.logger.org.springframework.ldap=INFO -log4j.logger.org.apache.directory.server.schema.registries.DefaultSyntaxRegistry=WARN \ No newline at end of file +log4j.logger.org.apache.directory.server.schema.registries.DefaultSyntaxRegistry=WARN +log4j.logger.org.apache.directory.server.core.schema.bootstrap=ERROR +log4j.logger.org.apache.directory.server.core.partition.impl.btree=ERROR +log4j.logger.org.apache.directory.shared.ldap.ldif=ERROR