int level)
{
if (denied) {
- DEBUG(level, ("Access on %s denied", ldb_dn_get_linearized(dn)));
+ DEBUG(level, ("Access on %s denied\n", ldb_dn_get_linearized(dn)));
} else {
- DEBUG(level, ("Access on %s granted", ldb_dn_get_linearized(dn)));
+ DEBUG(level, ("Access on %s granted\n", ldb_dn_get_linearized(dn)));
}
DEBUG(level,("Security context: %s\n",
return NULL;
}
if (ldb_dn_validate(dsdb_dn->dn) == false) {
- DEBUG(10, ("could not parse %.*s as a %s DN",
+ DEBUG(10, ("could not parse %.*s as a %s DN\n",
(int)dn_blob->length, dn_blob->data,
dn_oid));
return NULL;
ret = dsdb_search_dn(sam_ctx, tmp_ctx, &res, NULL, attrs, 0);
if (res == NULL || res->count != 1 || ret != LDB_SUCCESS) {
- DEBUG(0, ("Failed to get rootDSE for dnsHostName: %s",
+ DEBUG(0, ("Failed to get rootDSE for dnsHostName: %s\n",
ldb_errstring(sam_ctx)));
TALLOC_FREE(tmp_ctx);
return ret;
"dnsHostName",
NULL);
if (_host_name == NULL) {
- DEBUG(0, ("Failed to get dnsHostName from rootDSE"));
+ DEBUG(0, ("Failed to get dnsHostName from rootDSE\n"));
TALLOC_FREE(tmp_ctx);
return LDB_ERR_OPERATIONS_ERROR;
}
*fsmo_role_dn = samdb_partitions_dn(ldb, tmp_ctx);
ret = samdb_reference_dn(ldb, tmp_ctx, *fsmo_role_dn, "fSMORoleOwner", role_owner_dn);
if (ret != LDB_SUCCESS) {
- DEBUG(0,(__location__ ": Failed to find fSMORoleOwner in Naming Master object - %s",
+ DEBUG(0,(__location__ ": Failed to find fSMORoleOwner in Naming Master object - %s\n",
ldb_errstring(ldb)));
talloc_free(tmp_ctx);
return WERR_DS_DRA_INTERNAL_ERROR;
*fsmo_role_dn = samdb_infrastructure_dn(ldb, tmp_ctx);
ret = samdb_reference_dn(ldb, tmp_ctx, *fsmo_role_dn, "fSMORoleOwner", role_owner_dn);
if (ret != LDB_SUCCESS) {
- DEBUG(0,(__location__ ": Failed to find fSMORoleOwner in Schema Master object - %s",
+ DEBUG(0,(__location__ ": Failed to find fSMORoleOwner in Schema Master object - %s\n",
ldb_errstring(ldb)));
talloc_free(tmp_ctx);
return WERR_DS_DRA_INTERNAL_ERROR;
case DREPL_RID_MASTER:
ret = samdb_rid_manager_dn(ldb, tmp_ctx, fsmo_role_dn);
if (ret != LDB_SUCCESS) {
- DEBUG(0, (__location__ ": Failed to find RID Manager object - %s", ldb_errstring(ldb)));
+ DEBUG(0, (__location__ ": Failed to find RID Manager object - %s\n", ldb_errstring(ldb)));
talloc_free(tmp_ctx);
return WERR_DS_DRA_INTERNAL_ERROR;
}
ret = samdb_reference_dn(ldb, tmp_ctx, *fsmo_role_dn, "fSMORoleOwner", role_owner_dn);
if (ret != LDB_SUCCESS) {
- DEBUG(0,(__location__ ": Failed to find fSMORoleOwner in RID Manager object - %s",
+ DEBUG(0,(__location__ ": Failed to find fSMORoleOwner in RID Manager object - %s\n",
ldb_errstring(ldb)));
talloc_free(tmp_ctx);
return WERR_DS_DRA_INTERNAL_ERROR;
*fsmo_role_dn = ldb_get_schema_basedn(ldb);
ret = samdb_reference_dn(ldb, tmp_ctx, *fsmo_role_dn, "fSMORoleOwner", role_owner_dn);
if (ret != LDB_SUCCESS) {
- DEBUG(0,(__location__ ": Failed to find fSMORoleOwner in Schema Master object - %s",
+ DEBUG(0,(__location__ ": Failed to find fSMORoleOwner in Schema Master object - %s\n",
ldb_errstring(ldb)));
talloc_free(tmp_ctx);
return WERR_DS_DRA_INTERNAL_ERROR;
*fsmo_role_dn = ldb_get_default_basedn(ldb);
ret = samdb_reference_dn(ldb, tmp_ctx, *fsmo_role_dn, "fSMORoleOwner", role_owner_dn);
if (ret != LDB_SUCCESS) {
- DEBUG(0,(__location__ ": Failed to find fSMORoleOwner in Pd Master object - %s",
+ DEBUG(0,(__location__ ": Failed to find fSMORoleOwner in Pd Master object - %s\n",
ldb_errstring(ldb)));
talloc_free(tmp_ctx);
return WERR_DS_DRA_INTERNAL_ERROR;
LDB_SCOPE_BASE,
attrs, NULL);
if (ldb_ret != LDB_SUCCESS) {
- DEBUG(4, ("Failed to find dNSHostName for dn %s, ldb error: %s",
+ DEBUG(4, ("Failed to find dNSHostName for dn %s, ldb error: %s\n",
ldb_dn_get_linearized(server_dn), ldb_errstring(ldb)));
return NULL;
}
* log the error. The caller should fallback to using
* the default domain password settings
*/
- DBG_ERR("Error retrieving msDS-ResultantPSO %s for %s",
+ DBG_ERR("Error retrieving msDS-ResultantPSO %s for %s\n",
ldb_dn_get_linearized(pso_dn),
ldb_dn_get_linearized(user_msg->dn));
}
list = talloc(tmp_ctx, struct kcc_connection_list);
if (!list) {
- DEBUG(0, ("out of memory"));
+ DEBUG(0, ("out of memory\n"));
return NULL;
}
list->servers = talloc_array(list, struct kcc_connection,
res->count);
if (!list->servers) {
- DEBUG(0, ("out of memory"));
+ DEBUG(0, ("out of memory\n"));
talloc_free(tmp_ctx);
return NULL;
}
ret = dsdb_search_dn(samdb, mem_ctx, &res, dn, attrs,
DSDB_SEARCH_SHOW_EXTENDED_DN | DSDB_SEARCH_REVEAL_INTERNALS);
if (ret != LDB_SUCCESS) {
- DEBUG(0, (__location__ ": Failed search for attribute %s on %s",
+ DEBUG(0, (__location__ ": Failed search for attribute %s on %s\n",
linked_attr_name, ldb_dn_get_linearized(dn)));
return WERR_INTERNAL_ERROR;
}
attr_ext_dn = ldb_msg_find_attr_as_dn(samdb, mem_ctx, res->msgs[0], linked_attr_name);
if (!attr_ext_dn) {
- DEBUG(0, (__location__ ": Failed search for attribute %s on %s",
+ DEBUG(0, (__location__ ": Failed search for attribute %s on %s\n",
linked_attr_name, ldb_dn_get_linearized(dn)));
return WERR_INTERNAL_ERROR;
}
ntstatus = dsdb_get_extended_dn_uint32(attr_ext_dn, attr_version, "RMD_VERSION");
if (!NT_STATUS_IS_OK(ntstatus)) {
- DEBUG(0, (__location__ ": Could not extract component %s from dn \"%s\"",
+ DEBUG(0, (__location__ ": Could not extract component %s from dn \"%s\"\n",
"RMD_VERSION", ldb_dn_get_extended_linearized(mem_ctx, attr_ext_dn, 1)));
return WERR_INTERNAL_ERROR;
}
ntstatus = dsdb_get_extended_dn_nttime(attr_ext_dn, attr_change_time, "RMD_CHANGETIME");
if (!NT_STATUS_IS_OK(ntstatus)) {
- DEBUG(0, (__location__ ": Could not extract component %s from dn \"%s\"",
+ DEBUG(0, (__location__ ": Could not extract component %s from dn \"%s\"\n",
"RMD_CHANGETIME", ldb_dn_get_extended_linearized(mem_ctx, attr_ext_dn, 1)));
return WERR_INTERNAL_ERROR;
}
ntstatus = dsdb_get_extended_dn_uint32(attr_ext_dn, attr_version, "RMD_ORIGINATING_USN");
if (!NT_STATUS_IS_OK(ntstatus)) {
- DEBUG(0, (__location__ ": Could not extract component %s from dn \"%s\"",
+ DEBUG(0, (__location__ ": Could not extract component %s from dn \"%s\"\n",
"RMD_ORIGINATING_USN", ldb_dn_get_extended_linearized(mem_ctx, attr_ext_dn, 1)));
return WERR_INTERNAL_ERROR;
}
ret = ldb_search(samdb, mem_ctx, &res, dn, LDB_SCOPE_BASE, attrs, NULL);
if (ret != LDB_SUCCESS || res->count != 1) {
- DEBUG(0, (__location__ ": Failed search for replPropertyMetaData attribute on %s",
+ DEBUG(0, (__location__ ": Failed search for replPropertyMetaData attribute on %s\n",
ldb_dn_get_linearized(dn)));
return WERR_INTERNAL_ERROR;
}
ret = dsdb_search_one(samdb, invocation_id_str, &msg, ldb_get_config_basedn(samdb), LDB_SCOPE_SUBTREE,
attrs_invocation, 0, "(&(objectClass=nTDSDSA)(invocationId=%s))", invocation_id_str);
if (ret != LDB_SUCCESS) {
- DEBUG(0, (__location__ ": Failed search for the object DN under %s whose invocationId is %s",
+ DEBUG(0, (__location__ ": Failed search for the object DN under %s whose invocationId is %s\n",
invocation_id_str, ldb_dn_get_linearized(ldb_get_config_basedn(samdb))));
talloc_free(invocation_id_str);
return WERR_INTERNAL_ERROR;
ldb_dn_get_linearized(nc_root),
&p);
if (!W_ERROR_IS_OK(status)) {
- DEBUG(2, ("Failed to find requested Naming Context for %s: %s",
+ DEBUG(2, ("Failed to find requested Naming Context for %s: %s\n",
ldb_dn_get_linearized(nc_root),
win_errstr(status)));
nt_status = werror_to_ntstatus(status);
if (!W_ERROR_IS_OK(status)) {
struct GUID_txt_buf str;
- DEBUG(2, ("Failed to find requested source DSA for %s and %s: %s",
+ DEBUG(2, ("Failed to find requested source DSA for %s and %s: %s\n",
ldb_dn_get_linearized(nc_root),
GUID_buf_string(&state->op->source_dsa->repsFrom1->source_dsa_obj_guid, &str),
win_errstr(status)));
ldb_dn_get_linearized(schema_dn),
&p);
if (!W_ERROR_IS_OK(status)) {
- DEBUG(2, ("Failed to find requested Naming Context for schema: %s",
+ DEBUG(2, ("Failed to find requested Naming Context for schema: %s\n",
win_errstr(status)));
nt_status = werror_to_ntstatus(status);
tevent_req_nterror(req, nt_status);
&state->op->source_dsa);
if (!W_ERROR_IS_OK(status)) {
struct GUID_txt_buf str;
- DEBUG(2, ("Failed to find requested source DSA for %s and %s: %s",
+ DEBUG(2, ("Failed to find requested source DSA for %s and %s: %s\n",
ldb_dn_get_linearized(schema_dn),
GUID_buf_string(&state->op->source_dsa->repsFrom1->source_dsa_obj_guid, &str),
win_errstr(status)));
werr = dsdb_schema_pfm_add_entry(working_schema->prefixmap,
rm->bin_oid, &rm->id, NULL);
if (!W_ERROR_IS_OK(werr)) {
- DEBUG(0,(__location__ ": Failed to merge remote prefixMap: %s",
+ DEBUG(0,(__location__ ": Failed to merge remote prefixMap: %s\n",
win_errstr(werr)));
talloc_free(working_schema);
return werr;
object_count,
first_object);
if (!W_ERROR_IS_OK(werr)) {
- DEBUG(0, ("%s: dsdb_repl_resolve_working_schema() failed: %s",
+ DEBUG(0, ("%s: dsdb_repl_resolve_working_schema() failed: %s\n",
__location__, win_errstr(werr)));
talloc_free(working_schema);
return werr;
DEBUG(0, ("Unxpectedly got secret value %s on %s from DRS server\n",
e->name, ldb_dn_get_linearized(msg->dn)));
} else {
- DEBUG(0, ("Unxpectedly got secret value on %s from DRS server",
+ DEBUG(0, ("Unxpectedly got secret value on %s from DRS server\n",
ldb_dn_get_linearized(msg->dn)));
}
} else if (!W_ERROR_IS_OK(status)) {
if (a->attid == DRSUAPI_ATTID_name) {
const struct ldb_val *rdn_val = ldb_dn_get_rdn_val(msg->dn);
if (rdn_val == NULL) {
- DEBUG(0, ("Unxpectedly unable to get RDN from %s for validation",
+ DEBUG(0, ("Unxpectedly unable to get RDN from %s for validation\n",
ldb_dn_get_linearized(msg->dn)));
return WERR_FOOBAR;
}
if (e->num_values != 1) {
- DEBUG(0, ("Unxpectedly got wrong number of attribute values (got %u, expected 1) when checking RDN against name of %s",
+ DEBUG(0, ("Unxpectedly got wrong number of attribute values (got %u, expected 1) when checking RDN against name of %s\n",
e->num_values,
ldb_dn_get_linearized(msg->dn)));
return WERR_FOOBAR;
}
if (data_blob_cmp(rdn_val,
&e->values[0]) != 0) {
- DEBUG(0, ("Unxpectedly got mismatching RDN values when checking RDN against name of %s",
+ DEBUG(0, ("Unxpectedly got mismatching RDN values when checking RDN against name of %s\n",
ldb_dn_get_linearized(msg->dn)));
return WERR_FOOBAR;
}
* so it needs to be freed to prevent a leak.
*/
json_free(&value);
- DBG_ERR("unable to add ldb value to JSON audit message");
+ DBG_ERR("unable to add ldb value to JSON audit message\n");
return -1;
}
}
if (ac->pso_res != NULL) {
- DBG_ERR("Too many PSO results for %s",
+ DBG_ERR("Too many PSO results for %s\n",
ldb_dn_get_linearized(ac->search_res->message->dn));
talloc_free(ac->pso_res);
}
/* log errors, but continue with the default domain settings */
if (ret != LDB_SUCCESS) {
- DBG_ERR("Error %d constructing PSO query for user %s", ret,
+ DBG_ERR("Error %d constructing PSO query for user %s\n", ret,
ldb_dn_get_linearized(ac->search_res->message->dn));
}
LDB_REQ_SET_LOCATION(pso_req);
DSDB_FLAG_OWN_MODULE|DSDB_FLAG_REPLICATED_UPDATE,
req);
if (ret != LDB_SUCCESS) {
- DEBUG(0,(__location__ ": Failed to modify rDN/name of DN being DRS renamed '%s' - %s",
+ DEBUG(0,(__location__ ": Failed to modify rDN/name of DN being DRS renamed '%s' - %s\n",
ldb_dn_get_linearized(dn),
ldb_errstring(ldb_module_get_ctx(ar->module))));
return ret;
failed:
talloc_free(msg);
- DEBUG(0,(__location__ ": Failed to setup modify rDN/name of DN being DRS renamed '%s'",
+ DEBUG(0,(__location__ ": Failed to setup modify rDN/name of DN being DRS renamed '%s'\n",
ldb_dn_get_linearized(dn)));
return LDB_ERR_OPERATIONS_ERROR;
}
ret = dsdb_module_modify(ar->module, msg, DSDB_FLAG_OWN_MODULE, req);
if (ret != LDB_SUCCESS) {
- DEBUG(0,(__location__ ": Failed to modify lastKnownParent of lostAndFound DN '%s' - %s",
+ DEBUG(0,(__location__ ": Failed to modify lastKnownParent of lostAndFound DN '%s' - %s\n",
ldb_dn_get_linearized(msg->dn),
ldb_errstring(ldb_module_get_ctx(ar->module))));
return ret;
el_count++;
tmp = val_count + msg->elements[i].num_values;
if (unlikely(tmp < val_count)) {
- DBG_ERR("too many values for one element!");
+ DBG_ERR("too many values for one element!\n");
return LDB_ERR_OPERATIONS_ERROR;
}
val_count = tmp;
break;
default:
talloc_free(mem_ctx);
- DEBUG(0,(__location__ " Wrong type of target %u!", (unsigned)target));
+ DEBUG(0,(__location__ " Wrong type of target %u!\n", (unsigned)target));
return NULL;
}
talloc_free(mem_ctx);
break;
default:
talloc_free(mem_ctx);
- DEBUG(0,(__location__ " Wrong type of target %u!", (unsigned)target));
+ DEBUG(0,(__location__ " Wrong type of target %u!\n", (unsigned)target));
return NULL;
}
break;
default:
talloc_free(mem_ctx);
- DEBUG(0,(__location__ " Wrong type of target %u!", (unsigned)target));
+ DEBUG(0,(__location__ " Wrong type of target %u!\n", (unsigned)target));
return NULL;
}
}