summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-12-04 07:49:01 (GMT)
committerAleksander Machniak <alec@alec.pl>2013-12-04 07:50:06 (GMT)
commit19627e08d6a5bee73e19ad40d16402cb927e8208 (patch)
tree343560e17cbb3d9c75bebd941f469c3435e7b2d2
parentf6102545ebfbc07e638c44ca2bcc30f25dd5f39a (diff)
downloadkolab-wap-19627e08d6a5bee73e19ad40d16402cb927e8208.tar.gz
Skip unique attribute searches when searching string doesn't look like UUID
-rw-r--r--lib/ext/Net/LDAP3.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ext/Net/LDAP3.php b/lib/ext/Net/LDAP3.php
index e661edb..9a4ecb2 100644
--- a/lib/ext/Net/LDAP3.php
+++ b/lib/ext/Net/LDAP3.php
@@ -823,8 +823,8 @@ class Net_LDAP3
$this->_debug("$subject is not a dn");
- if (strlen($subject) < 16) {
- $this->_debug("$subject is too short to be a unique identifier");
+ if (strlen($subject) < 32 || preg_match('/[^a-fA-F0-9-]/', $subject)) {
+ $this->_debug("$subject is not a unique identifier");
return;
}