summaryrefslogtreecommitdiff
path: root/src/providers/ad/ad_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers/ad/ad_init.c')
-rw-r--r--src/providers/ad/ad_init.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/providers/ad/ad_init.c b/src/providers/ad/ad_init.c
index cb73aca3..09ba384b 100644
--- a/src/providers/ad/ad_init.c
+++ b/src/providers/ad/ad_init.c
@@ -213,6 +213,16 @@ sssm_ad_id_init(struct be_ctx *bectx,
}
}
+ /* setup periodical refresh of expired records */
+ ret = be_refresh_add_cb(bectx->refresh_ctx, BE_REFRESH_TYPE_NETGROUPS,
+ sdap_refresh_netgroups_send,
+ sdap_refresh_netgroups_recv,
+ sdap_ctx);
+ if (ret != EOK && ret != EEXIST) {
+ DEBUG(SSSDBG_MINOR_FAILURE, ("Periodical refresh of netgroups "
+ "will not work [%d]: %s\n", ret, strerror(ret)));
+ }
+
*ops = &ad_id_ops;
*pvt_data = ad_ctx;