{
struct db_context *db_sc = NULL;
char *fname = lpcfg_private_db_path(mem_ctx, lp_ctx, "schannel_store");
+ int hash_size;
if (!fname) {
return NULL;
}
- db_sc = dbwrap_local_open(mem_ctx, lp_ctx, fname, 0,
- TDB_CLEAR_IF_FIRST|TDB_NOSYNC, O_RDWR|O_CREAT,
- 0600, DBWRAP_LOCK_ORDER_NONE,
- DBWRAP_FLAG_NONE);
+ hash_size = lpcfg_tdb_hash_size(lp_ctx, fname);
+
+ db_sc = dbwrap_local_open(
+ mem_ctx,
+ lp_ctx,
+ fname,
+ hash_size,
+ TDB_CLEAR_IF_FIRST|TDB_NOSYNC,
+ O_RDWR|O_CREAT,
+ 0600,
+ DBWRAP_LOCK_ORDER_NONE,
+ DBWRAP_FLAG_NONE);
if (!db_sc) {
DEBUG(0,("open_schannel_session_store: Failed to open %s - %s\n",