value.dptr = blob.data;
value.dsize = blob.length;
- status = dbwrap_store_bystring(db_sc, keystr, value, TDB_REPLACE);
+ status = dbwrap_store_bystring(db_sc, keystr, value, DBWRAP_REPLACE);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0,("Unable to add %s to session key db - %s\n",
keystr, nt_errstr(status)));
value.dptr = blob.data;
value.dsize = blob.length;
- status = dbwrap_store_bystring(db_sc, keystr, value, TDB_REPLACE);
+ status = dbwrap_store_bystring(db_sc, keystr, value, DBWRAP_REPLACE);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0,("%s: failed to stored challenge info for '%s' "
"with key %s - %s\n",
SBVAL(privbuf,0,mask);
return NT_STATUS_IS_OK(dbwrap_store_bystring(db, keystr, data,
- TDB_REPLACE));
+ DBWRAP_REPLACE));
}
/*********************************************************************
dbwrap_store_bystring(ServiceHash, canon_name,
make_tdb_data((uint8_t *)&idx, sizeof(idx)),
- TDB_REPLACE);
+ DBWRAP_REPLACE);
TALLOC_FREE(canon_name);
PL_TSTAMP_FORMAT, time_h, time_l);
status = dbwrap_store_bystring(db, PL_TIMESTAMP_KEY,
- data, TDB_REPLACE);
+ data, DBWRAP_REPLACE);
done:
TALLOC_FREE(data.dptr);
return 1;
}
- status = dbwrap_store_bystring(db, keyname, value, TDB_REPLACE);
+ status = dbwrap_store_bystring(db,
+ keyname,
+ value,
+ DBWRAP_REPLACE);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0,("regdb_normalize_keynames_fn: "
"failed to store new record for [%s]!\n",
path));
status = dbwrap_store_bystring(db, path, empty_subkey_list,
- TDB_INSERT);
+ DBWRAP_INSERT);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, ("regdb_upgrade_v2_to_v3: writing subkey list "
"[%s] failed\n", path));
dbuf.dptr = buffer;
dbuf.dsize = len;
werr = ntstatus_to_werror(dbwrap_store_bystring(db, keyname, dbuf,
- TDB_REPLACE));
+ DBWRAP_REPLACE));
done:
TALLOC_FREE(ctx);
} else {
status = dbwrap_store_bystring(db, keyname,
tdbdata,
- TDB_REPLACE);
+ DBWRAP_REPLACE);
}
if (!NT_STATUS_IS_OK(status)) {
d_fprintf(stderr,
} else {
status = dbwrap_store_bystring(db, keyname,
tdbdata,
- TDB_REPLACE);
+ DBWRAP_REPLACE);
}
if (!NT_STATUS_IS_OK(status)) {
d_fprintf(stderr,
status = dbwrap_store_bystring(db, idstr,
string_term_tdb_data(sid_string),
- TDB_REPLACE);
+ DBWRAP_REPLACE);
if (!NT_STATUS_IS_OK(status)) {
d_fprintf(stderr, "Error storing ID -> SID: "
"%s\n", nt_errstr(status));
}
status = dbwrap_store_bystring(db, sid_string,
string_term_tdb_data(idstr),
- TDB_REPLACE);
+ DBWRAP_REPLACE);
if (!NT_STATUS_IS_OK(status)) {
d_fprintf(stderr, "Error storing SID -> ID: "
"%s\n", nt_errstr(status));
}
ret = dbwrap_store_bystring(db, numstr,
- string_term_tdb_data(keystr), TDB_INSERT);
+ string_term_tdb_data(keystr), DBWRAP_INSERT);
if (!NT_STATUS_IS_OK(ret)) {
DEBUG(1, ("Fatal error while storing new "
ret = dbwrap_store_bystring(db, state->ksidstr,
string_term_tdb_data(state->kidstr),
- TDB_INSERT);
+ DBWRAP_INSERT);
if (!NT_STATUS_IS_OK(ret)) {
DEBUG(0, ("Error storing SID -> ID: %s\n", nt_errstr(ret)));
goto done;
ret = dbwrap_store_bystring(db, state->kidstr,
string_term_tdb_data(state->ksidstr),
- TDB_INSERT);
+ DBWRAP_INSERT);
if (!NT_STATUS_IS_OK(ret)) {
DEBUG(0, ("Error storing ID -> SID: %s\n", nt_errstr(ret)));
/* try to remove the previous stored SID -> ID map */
ret = dbwrap_store_bystring(db, state->ksidstr,
string_term_tdb_data(state->kidstr),
- TDB_INSERT);
+ DBWRAP_INSERT);
if (!NT_STATUS_IS_OK(ret)) {
DEBUG(0, ("Error storing SID -> ID: %s\n", nt_errstr(ret)));
goto done;
ret = dbwrap_store_bystring(db, state->kidstr,
string_term_tdb_data(state->ksidstr),
- TDB_INSERT);
+ DBWRAP_INSERT);
if (!NT_STATUS_IS_OK(ret)) {
DEBUG(0, ("Error storing ID -> SID: %s\n", nt_errstr(ret)));
/* try to remove the previous stored SID -> ID map */
dbuf.dsize = blob.length;
status = dbwrap_store_bystring(notify->db, NOTIFY_KEY, dbuf,
- TDB_REPLACE);
+ DBWRAP_REPLACE);
talloc_free(tmp_ctx);
return status;
}