From 29d7d4b2f7501605528a61458bb8783ec57f9418 Mon Sep 17 00:00:00 2001 From: Deon George Date: Fri, 19 Apr 2019 21:01:02 +1000 Subject: [PATCH] Fixes #31 - Glue entries are not browsable through phpldapadmin --- lib/ds_ldap.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/ds_ldap.php b/lib/ds_ldap.php index 1b1a19e..de80066 100644 --- a/lib/ds_ldap.php +++ b/lib/ds_ldap.php @@ -181,6 +181,14 @@ class ldap extends DS { * specifies deref behavior for each ldap_search operation. */ ldap_set_option($resource,LDAP_OPT_REFERRALS,0); + /* Enabling manageDsaIt to be able to browse through glued entries + * 2.16.840.1.113730.3.4.2 : "ManageDsaIT Control" "RFC 3296" "The client may provide + * the ManageDsaIT control with an operation to indicate that the operation is intended + * to manage objects within the DSA (server) Information Tree. The control causes + * Directory-specific entries (DSEs), regardless of type, to be treated as normal entries + * allowing clients to interrogate and update these entries using LDAP operations." */ + ldap_set_option($resource,LDAP_OPT_SERVER_CONTROLS,array(array('oid'=>'2.16.840.1.113730.3.4.2'))); + # Try to fire up TLS is specified in the config if ($this->isTLSEnabled()) $this->startTLS($resource);