Changeset 989 for vendor/current/source4/dsdb
- Timestamp:
- Nov 25, 2016, 8:04:54 PM (9 years ago)
- 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 420 420 } 421 421 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 */ 422 428 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) { 424 431 ldb_asprintf_errstring(ldb, "objectclass_attrs: at least one mandatory attribute ('%s') on entry '%s' wasn't specified!", 425 432 found_must_contain[0], -
vendor/current/source4/dsdb/samdb/ldb_modules/ranged_results.c
r988 r989 202 202 for (i = 0; req->op.search.attrs && req->op.search.attrs[i]; i++) { 203 203 char *p; 204 size_t range_len = strlen(";range="); 205 204 206 new_attrs = talloc_realloc(req, new_attrs, const char *, i+2); 205 207 new_attrs[i] = req->op.search.attrs[i]; … … 209 211 continue; 210 212 } 211 if (strncasecmp(p, ";range=", strlen(";range=")) != 0) {213 if (strncasecmp(p, ";range=", range_len) != 0) { 212 214 continue; 213 215 } 214 216 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) { 217 219 ldb_asprintf_errstring(ldb, 218 220 "range request error: "
Note:
See TracChangeset
for help on using the changeset viewer.