s4:libcli/ldap Add 'relax' OID to known network representations
authorAndrew Bartlett <abartlet@samba.org>
Thu, 12 Nov 2009 06:16:25 +0000 (17:16 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Nov 2009 11:23:22 +0000 (22:23 +1100)
This patch, inspired by a patche by Endi S. Dewata
<edewata@redhat.com>, allows this control to be passed to the LDAP
backend.

Andrew Bartlett

source4/libcli/ldap/ldap_controls.c

index 86493c81da68473501223861e290a5c36c3d436f..1572f252d5698d05878000dac375f0c26af25e14 100644 (file)
@@ -1274,6 +1274,8 @@ static const struct ldap_control_handler ldap_known_controls[] = {
 /* DSDB_EXTENDED_REPLICATED_OBJECTS_OID is internal only, and has no network representation */
        { "1.3.6.1.4.1.7165.4.4.1", NULL, NULL },
        { DSDB_OPENLDAP_DEREFERENCE_CONTROL, decode_openldap_dereference, encode_openldap_dereference},
+/* LDB_CONTROL_RELAX_OID has no data (so no need for pull/push functions) */
+       { LDB_CONTROL_RELAX_OID, NULL, NULL },
        { NULL, NULL, NULL }
 };