Skip to content
Snippets Groups Projects
Commit 06ccf5ed authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

log if attribute value exceed max size

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1140 44740490-163a-0410-bde0-09ae8108e29a
parent d32ec43e
No related branches found
No related tags found
No related merge requests found
...@@ -174,6 +174,8 @@ class SimpleSAML_Auth_LDAP { ...@@ -174,6 +174,8 @@ class SimpleSAML_Auth_LDAP {
if (is_null($maxsize) or strlen($attribute[$j]) < $maxsize) { if (is_null($maxsize) or strlen($attribute[$j]) < $maxsize) {
$include = TRUE; $include = TRUE;
$values[] = ($base64encode ? base64_encode($attribute[$j]) : $attribute[$j] ); $values[] = ($base64encode ? base64_encode($attribute[$j]) : $attribute[$j] );
} else {
SimpleSAML_Logger::debug('Library - attribute size of [' . $attributeName . '] exceeded maximum limit of ' . $maxsize . ' - skipping attribute value');
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment