/*
* If the on-disk data is not even in length, we know
* it is corrupt, and can not be safely pushed. We
- * would either truncate, send either a un-initilaised
+ * would either truncate, send an uninitialised
* byte or send a forced zero byte
*/
return NT_STATUS_INTERNAL_DB_CORRUPTION;
for (i = 0; i < parameters->length / 2; i++) {
/*
* The on-disk format needs to be in the 'network'
- * format, parmeters->array is a uint16_t array of
+ * format, parameters->array is a uint16_t array of
* length parameters->length / 2
*/
SSVAL(val.data, i * 2, parameters->array[i]);
goto failed;
/* Perform a one level (child) search from the local
- * site distinguided name. We're looking for the
+ * site distinguished name. We're looking for the
* "options" attribute within the nTDSSiteSettings
* object
*/
}
/*
- * Either we are working aginast a remote LDAP
+ * Either we are working against a remote LDAP
* server or the object doesn't exist locally.
*
* This means any GUID that was present in the DN
*
* @param ldb [in] Current ldb context
* @param count [out] Pointer to the count
- * @param base [in] The base dn for the quey
+ * @param base [in] The base dn for the query
* @param dom_sid [in] The domain sid, if non NULL records that are not a member
* of the domain are ignored.
* @param scope [in] Search scope.
/*
* the timestamp for the next event,
- * this is the timstamp passed to event_add_timed()
+ * this is the timestamp passed to event_add_timed()
*/
struct timeval next_event;
/*
* the timestamp for the next event,
- * this is the timstamp passed to event_add_timed()
+ * this is the timestamp passed to event_add_timed()
*/
struct timeval next_event;
/* some stuff for running only the incoming notify ops */
struct {
/*
- * here we have a reference to the immidicate event that was
+ * here we have a reference to the immediate event that was
* scheduled from the DsReplicaSync
*/
struct tevent_immediate *im;
/*
* the timestamp for the next event,
- * this is the timstamp passed to event_add_timed()
+ * this is the timestamp passed to event_add_timed()
*/
struct timeval next_event;
return LDB_ERR_OPERATIONS_ERROR;
}
- /* Must remove any existing attribute, or else confusion reins */
+ /* Must remove any existing attribute, or else confusion reigns */
ldb_msg_remove_attr(msg, attrName);
ret = ldb_msg_add_empty(msg, attrName, 0, &allowedClasses);
if (ret != LDB_SUCCESS) {
return LDB_ERR_OPERATIONS_ERROR;
}
- /* Must remove any existing attribute, or else confusion reins */
+ /* Must remove any existing attribute, or else confusion reigns */
ldb_msg_remove_attr(msg, "allowedChildClassesEffective");
oc_el = ldb_msg_find_element(sd_msg, "objectClass");
as_system->critical = 0;
}
- /* Must remove any existing attribute, or else confusion reins */
+ /* Must remove any existing attribute, or else confusion reigns */
ldb_msg_remove_attr(msg, "sDRightsEffective");
ret = ldb_msg_add_empty(msg, "sDRightsEffective", 0, &rightsEffective);
if (ret != LDB_SUCCESS) {
/*
* We keep a track of the number of attributes that we
* add just for the need of the implementation
- * it will be useful to track then entries that needs not to
+ * it will be useful to track the entries that need not to
* be returned because there is no real change
*/
* We have a O(n'*p') complexity, in worse case n' = n and p' = p
* but in most case n' = n/2 (at least half of returned attributes
* are not replicated or generated) and p' is small as we
- * list only the attribute that have been modified since last interogation
+ * list only the attribute that have been modified since last interrogation
*
*/
newmsg = ldb_msg_new(dsc->req);
for (i = msg->num_elements - 1; i >= 0; i--) {
if (ldb_attr_cmp(msg->elements[i].name, "uSNChanged") == 0) {
int error = 0;
- /* Read the USN it will used at the end of the filtering
+ /* Read the USN it will be used at the end of the filtering
* to update the max USN in the cookie if we
* decide to keep this entry
*/
}
/*
- * If we don't have an USN and no updateness array then we skip the
+ * If we don't have an USN and no uptodateness array then we skip the
* test phase this is an optimisation for the case when you
* first query the DC without a cookie.
* As this query is most probably the one
tab[0].source_dsa_invocation_id = *(dsc->our_invocation_id);
- /* We have to add the updateness vector that we have*/
+ /* We have to add the uptodateness vector that we have*/
/* Version is always 1 in dirsync cookies */
cookie->blob.extra.uptodateness_vector.version = 1;
cookie->blob.extra.uptodateness_vector.reserved = 0;
* It *very* important to steal otherwise as val is in a subcontext
* related to res2, when the value will be one more time stolen
* it's elements[x].values that will be stolen, so it's important to
- * recreate the context hierrachy as if it was done from a ldb_request
+ * recreate the context hierarchy as if it was done from a ldb_request
*/
talloc_steal(res->msgs[0]->elements[0].values, val);
if (ret != LDB_SUCCESS) {
/*
* When outputting flags is used to say more results.
- * For the moment we didn't honnor the size info */
+ * For the moment we didn't honour the size info */
control->flags = 0;
}
/*
* When returning all the attributes return also the SD as
- * Windws do so.
+ * Windows does so.
*/
if (ldb_attr_in_list(attrs, "*")) {
struct ldb_sd_flags_control *sdctr = talloc_zero(dsc, struct ldb_sd_flags_control);
return ldb_oom(ldb);
}
/*
- * When no attributes are asked we in anycase expect at least 3 attributes:
+ * When no attributes are asked we in any case expect at least 3 attributes:
* * instanceType
* * objectGUID
* * parentGUID
/*
construct msDS-keyVersionNumber attr
- TODO: Make this based on the 'win2k' DS huristics bit...
+ TODO: Make this based on the 'win2k' DS heuristics bit...
*/
static int construct_msds_keyversionnumber(struct ldb_module *module,
OPERATIONAL_REMOVE_ALWAYS, /* remove always */
OPERATIONAL_REMOVE_UNASKED,/* remove if not requested */
OPERATIONAL_SD_FLAGS, /* show if SD_FLAGS_OID set, or asked for */
- OPERATIONAL_REMOVE_UNLESS_CONTROL /* remove always unless an adhoc control has been specified */
+ OPERATIONAL_REMOVE_UNLESS_CONTROL /* remove always unless an ad hoc control has been specified */
};
/*
if (!io->n.cleartext_utf8) {
/*
* when we don't have a cleartext password
- * we can't setup a supplementalCredential value
+ * we can't setup a supplementalCredentials value
*/
return LDB_SUCCESS;
}
- /* if there's an old supplementaCredentials blob then use it */
+ /* if there's an old supplementalCredentials blob then use it */
if (io->o.supplemental) {
if (io->o.scb.sub.signature == SUPPLEMENTAL_CREDENTIALS_SIGNATURE) {
old_scb = &io->o.scb;
/*
* Handles the password change control if it's specified. It has the
- * precedance and overrides already specified old password values of
+ * precedence and overrides already specified old password values of
* change requests (but that shouldn't happen since the control is
* fully internal and only used in conjunction with replace requests!).
*/
DSDB_CONTROL_RESTORE_TOMBSTONE_OID);
if (restore == NULL) {
/*
- * A tomstone reanimation generates a double update
+ * A tombstone reanimation generates a double update
* of pwdLastSet.
*
* So we only remove it without the
new_el->num_values = el->num_values;
new_el->values = talloc_steal(msg->elements, el->values);
- /* TODO: this relises a bit too heavily on the exact
+ /* TODO: this relies a bit too heavily on the exact
behaviour of ldb_msg_find_element and
ldb_msg_remove_element */
old_el = ldb_msg_find_element(msg, el->name);
*
* We have to check the DB in case someone else has
* modified the database while we are doing our
- * changes too (this case should be very bery rare) in
+ * changes too (this case should be very very rare) in
* order to be sure.
*/
if (dsdb_attribute_by_attributeID_id(schema, msds_intid)) {
TALLOC_FREE(msg);
/*
- * Test a message with a multivalues attributres
+ * Test a message with a multi-valued attribute
*/
msg = talloc_zero(ctx, struct ldb_message);
ldb_msg_add_string(msg, "attribute01", "value01");
}
/*
- * Test the a modify with no object SID is passed through correctly
+ * Test that a modify with no object SID is passed through correctly
*
*/
static void test_modify_no_objectSID(void **state)
Note that features can be marked as enabled in more than one
place. For example, the recyclebin feature is marked as enabled both
- on the CN=Partitions,CN=Configurration object and on the NTDS DN of
+ on the CN=Partitions,CN=Configuration object and on the NTDS DN of
each DC in the forest. It seems likely that it is the job of the KCC
to propagate between the two
*/
/**
* Parse schemaInfo structure from a data_blob
* (DATA_BLOB or ldb_val).
- * Suitable for parsing blobs that comes from
- * DRS interface of from LDB database
+ * Suitable for parsing blobs that come from
+ * DRS interface or from LDB database
*/
WERROR dsdb_schema_info_from_blob(const DATA_BLOB *blob,
TALLOC_CTX *mem_ctx, struct dsdb_schema_info **_schema_info)
/**
* Compares schemaInfo signatures in dsdb_schema and prefixMap.
* NOTE: At present function compares schemaInfo values
- * as string without taking into account schemVersion field
+ * as string without taking into account schemaVersion field
*
* @return WERR_OK if schemaInfos are equal
* WERR_DS_DRA_SCHEMA_MISMATCH if schemaInfos are different