mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-02 16:52:14 +00:00
SEC-2690: Add guard around debug statement
This commit is contained in:
parent
0f6235bbe0
commit
4a633a938a
@ -249,7 +249,9 @@ public class SpringSecurityLdapTemplate extends LdapTemplate {
|
|||||||
private void extractStringAttributeValues(DirContextAdapter adapter, Map<String, List<String>> record, String attributeName) {
|
private void extractStringAttributeValues(DirContextAdapter adapter, Map<String, List<String>> record, String attributeName) {
|
||||||
Object[] values = adapter.getObjectAttributes(attributeName);
|
Object[] values = adapter.getObjectAttributes(attributeName);
|
||||||
if (values == null || values.length == 0) {
|
if (values == null || values.length == 0) {
|
||||||
|
if(logger.isDebugEnabled()) {
|
||||||
logger.debug("No attribute value found for '" + attributeName + "'");
|
logger.debug("No attribute value found for '" + attributeName + "'");
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
List<String> svalues = new ArrayList<String>();
|
List<String> svalues = new ArrayList<String>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user