diff options
Diffstat (limited to 'src/providers/ipa/ipa_init.c')
-rw-r--r-- | src/providers/ipa/ipa_init.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_init.c b/src/providers/ipa/ipa_init.c index 8363ca6d..ece62bb8 100644 --- a/src/providers/ipa/ipa_init.c +++ b/src/providers/ipa/ipa_init.c @@ -228,6 +228,16 @@ int sssm_ipa_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 = &ipa_id_ops; *pvt_data = ipa_ctx; ret = EOK; |