diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-09-22 09:55:55 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-09-22 10:00:49 +1000 |
commit | 02872212ebd18f150d3e7cff5722698b770c9f90 (patch) | |
tree | 49f6754f921714f6974837cdd5eb41f8e26d3557 /source4 | |
parent | 516f32654ae2897acd1d7095f18ac6eb0db09230 (diff) | |
download | samba-02872212ebd18f150d3e7cff5722698b770c9f90.tar.gz samba-02872212ebd18f150d3e7cff5722698b770c9f90.tar.bz2 samba-02872212ebd18f150d3e7cff5722698b770c9f90.zip |
s4-ldap-server: set the NO_GLOBAL_CATALOG control on non-GC operations
this makes us honor GC semantics on the two ldap ports
Diffstat (limited to 'source4')
-rw-r--r-- | source4/ldap_server/ldap_backend.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/ldap_server/ldap_backend.c b/source4/ldap_server/ldap_backend.c index b180e0ed73..94f9ad3ace 100644 --- a/source4/ldap_server/ldap_backend.c +++ b/source4/ldap_server/ldap_backend.c @@ -582,6 +582,8 @@ static NTSTATUS ldapsrv_SearchRequest(struct ldapsrv_call *call) search_options->search_options = LDB_SEARCH_OPTION_PHANTOM_ROOT; ldb_request_add_control(lreq, LDB_CONTROL_SEARCH_OPTIONS_OID, false, search_options); } + } else { + ldb_request_add_control(lreq, DSDB_CONTROL_NO_GLOBAL_CATALOG, false, NULL); } extended_dn_control = ldb_request_get_control(lreq, LDB_CONTROL_EXTENDED_DN_OID); |