summaryrefslogtreecommitdiff
path: root/source3/nsswitch/idmap_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/nsswitch/idmap_cache.c')
-rw-r--r--source3/nsswitch/idmap_cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/nsswitch/idmap_cache.c b/source3/nsswitch/idmap_cache.c
index caf5fe72b3..13cb9f7eb9 100644
--- a/source3/nsswitch/idmap_cache.c
+++ b/source3/nsswitch/idmap_cache.c
@@ -103,7 +103,7 @@ NTSTATUS idmap_cache_build_idkey(TALLOC_CTX *ctx, char **idkey, const struct id_
NTSTATUS idmap_cache_set(struct idmap_cache_ctx *cache, const struct id_map *id)
{
NTSTATUS ret;
- time_t timeout = time(NULL) + lp_idmap_expire_time();
+ time_t timeout = time(NULL) + lp_idmap_cache_time();
TDB_DATA keybuf, databuf;
char *sidkey;
char *idkey;
@@ -219,7 +219,7 @@ done:
NTSTATUS idmap_cache_set_negative_sid(struct idmap_cache_ctx *cache, const struct id_map *id)
{
NTSTATUS ret;
- time_t timeout = time(NULL) + lp_idmap_negative_time();
+ time_t timeout = time(NULL) + lp_idmap_negative_cache_time();
TDB_DATA keybuf, databuf;
char *sidkey;
char *valstr;
@@ -258,7 +258,7 @@ done:
NTSTATUS idmap_cache_set_negative_id(struct idmap_cache_ctx *cache, const struct id_map *id)
{
NTSTATUS ret;
- time_t timeout = time(NULL) + lp_idmap_negative_time();
+ time_t timeout = time(NULL) + lp_idmap_negative_cache_time();
TDB_DATA keybuf, databuf;
char *idkey;
char *valstr;