Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117751490
D4283.1775185912.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
965 B
Referenced Files
None
Subscribers
None
D4283.1775185912.diff
View Options
diff --git a/lib/Net/LDAP3.php b/lib/Net/LDAP3.php
--- a/lib/Net/LDAP3.php
+++ b/lib/Net/LDAP3.php
@@ -772,6 +772,9 @@
if (!is_file($moz_ldapsearch)) {
$moz_ldapsearch = "/usr/lib/mozldap/ldapsearch";
}
+ if (!is_file($moz_ldapsearch)) {
+ $moz_ldapsearch = "/usr/bin/ldapsearch";
+ }
if (!is_file($moz_ldapsearch)) {
$moz_ldapsearch = null;
}
@@ -805,6 +808,10 @@
$command[] = escapeshellarg(self::CONTROL_EFFECTIVE_RIGHTS . ':true');
$command[] = "-c";
$command[] = escapeshellarg('dn:' . $this->_current_bind_dn);
+ } else if ($moz_ldapsearch == "/usr/bin/ldapsearch") {
+ // Modern 389 DS:
+ $command[] = "-E";
+ $command[] = escapeshellarg("!" . self::CONTROL_EFFECTIVE_RIGHTS . '=:dn:' . $this->_current_bind_dn);
} else {
// For 389 DS:
$command[] = "-J";
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 3, 3:11 AM (20 h, 21 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18822353
Default Alt Text
D4283.1775185912.diff (965 B)
Attached To
Mode
D4283: Support for ldapsearch 2.4
Attached
Detach File
Event Timeline