s4:ldb: make it possible to return per entry controls
[samba.git] / source4 / dsdb / samdb / ldb_modules / rootdse.c
index b38e182cf7897ca4bbc8557e987ef57efa4c43fa..04a97fcd3bb66d0ab479a61533a356efddb5bb54 100644 (file)
@@ -278,7 +278,7 @@ static int rootdse_callback(struct ldb_request *req, struct ldb_reply *ares)
                        return ldb_module_done(ac->req, NULL, NULL, ret);
                }
 
-               return ldb_module_send_entry(ac->req, ares->message);
+               return ldb_module_send_entry(ac->req, ares->message, ares->controls);
 
        case LDB_REPLY_REFERRAL:
                /* should we allow the backend to return referrals in this case