diff options
author | Aleksander Machniak <machniak@kolabsys.com> | 2015-03-19 09:16:33 (GMT) |
---|---|---|
committer | Aleksander Machniak <machniak@kolabsys.com> | 2015-03-19 09:16:33 (GMT) |
commit | 4b33c40ee88b8797336063e0b12e20aa0d5bcea7 (patch) | |
tree | 58b322c18c24fc9f94ead0f41e08c5104cc0f17e | |
parent | 85ffcf7964242eb2f1f4d8020d2b61b33d36b9f6 (diff) | |
download | Net_LDAP3-4b33c40ee88b8797336063e0b12e20aa0d5bcea7.tar.gz |
Fix VLV base DN somparison when it contains utf-8 characters/escape sentences (#4863)
-rw-r--r-- | lib/Net/LDAP3.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Net/LDAP3.php b/lib/Net/LDAP3.php index 5ace6bc..4af66f3 100644 --- a/lib/Net/LDAP3.php +++ b/lib/Net/LDAP3.php @@ -1950,7 +1950,8 @@ class Net_LDAP3 $this->_debug("Existing vlv index and search information", $vlv_indexes); - $filter = strtolower($filter); + $filter = strtolower($filter); + $base_dn = self::unified_dn($base_dn); foreach ($vlv_indexes as $vlv_index) { if (!empty($vlv_index[$base_dn])) { @@ -2079,7 +2080,7 @@ class Net_LDAP3 foreach ($vlv_searches->entries(true) as $vlv_search_dn => $vlv_search_attrs) { // The attributes we are interested in are as follows: - $_vlv_base_dn = $vlv_search_attrs['vlvbase']; + $_vlv_base_dn = self::unified_dn($vlv_search_attrs['vlvbase']); $_vlv_scope = $vlv_search_attrs['vlvscope']; $_vlv_filter = $vlv_search_attrs['vlvfilter']; |