Ignore:
Timestamp:
Nov 25, 2016, 8:04:54 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.7

Location:
vendor/current/source4/dsdb/samdb/ldb_modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source4/dsdb/samdb/ldb_modules/objectclass_attrs.c

    r988 r989  
    420420        }
    421421
     422        /*
     423         * We skip this check under dbcheck to allow fixing of other
     424         * attributes even if an attribute is missing.  This matters
     425         * for CN=RID Set as the required attribute rIDNextRid is not
     426         * replicated.
     427         */
    422428        if (found_must_contain[0] != NULL &&
    423             ldb_msg_check_string_attribute(msg, "isDeleted", "TRUE") == 0) {
     429            ldb_msg_check_string_attribute(msg, "isDeleted", "TRUE") == 0 &&
     430            ldb_request_get_control(ac->req, DSDB_CONTROL_DBCHECK) == NULL) {
    424431                ldb_asprintf_errstring(ldb, "objectclass_attrs: at least one mandatory attribute ('%s') on entry '%s' wasn't specified!",
    425432                                       found_must_contain[0],
  • vendor/current/source4/dsdb/samdb/ldb_modules/ranged_results.c

    r988 r989  
    202202        for (i = 0; req->op.search.attrs && req->op.search.attrs[i]; i++) {
    203203                char *p;
     204                size_t range_len = strlen(";range=");
     205
    204206                new_attrs = talloc_realloc(req, new_attrs, const char *, i+2);
    205207                new_attrs[i] = req->op.search.attrs[i];
     
    209211                        continue;
    210212                }
    211                 if (strncasecmp(p, ";range=", strlen(";range=")) != 0) {
     213                if (strncasecmp(p, ";range=", range_len) != 0) {
    212214                        continue;
    213215                }
    214216                end = (unsigned int)-1;
    215                 if (sscanf(p, ";range=%u-*", &start) != 1) {
    216                         if (sscanf(p, ";range=%u-%u", &start, &end) != 2) {
     217                if (sscanf(p + range_len, "%u-*", &start) != 1) {
     218                        if (sscanf(p + range_len, "%u-%u", &start, &end) != 2) {
    217219                                ldb_asprintf_errstring(ldb,
    218220                                        "range request error: "
Note: See TracChangeset for help on using the changeset viewer.