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/ad | |
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/ad')
-rw-r--r-- | src/providers/ad/ad_init.c | 10 |
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; |