diff options
author | Pavel Březina <pbrezina@redhat.com> | 2013-05-14 15:00:05 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-06-10 20:30:57 +0200 |
commit | 7b5e7e539ae9312ab55d75aa94feaad549b2a708 (patch) | |
tree | 139a057c8e0a57e57360a7dd060cad8d42339859 /src/providers/ipa | |
parent | 0cf0e2d758d09e9b314ba72ce6638df10b258462 (diff) | |
download | sssd-7b5e7e539ae9312ab55d75aa94feaad549b2a708.tar.gz sssd-7b5e7e539ae9312ab55d75aa94feaad549b2a708.tar.bz2 sssd-7b5e7e539ae9312ab55d75aa94feaad549b2a708.zip |
providers: refresh expired netgroups
https://fedorahosted.org/sssd/ticket/1713
Diffstat (limited to 'src/providers/ipa')
-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; |