summaryrefslogtreecommitdiff
path: root/src/providers/ad/ad_common.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-04-16 17:04:43 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-05-03 20:31:39 +0200
commit74e95cfd9d3939dfe9417d79d2f6fc79b361405f (patch)
treeb7f992efe22a0d9924e43d38a19f93726ec4187d /src/providers/ad/ad_common.c
parent33df734b39538eeb870b118b7feea76f90bb004b (diff)
downloadsssd-74e95cfd9d3939dfe9417d79d2f6fc79b361405f.tar.gz
sssd-74e95cfd9d3939dfe9417d79d2f6fc79b361405f.tar.bz2
sssd-74e95cfd9d3939dfe9417d79d2f6fc79b361405f.zip
Active Directory dynamic DNS updates
https://fedorahosted.org/sssd/ticket/1504 Implements dynamic DNS updates for the AD provider. By default, the updates also update the reverse zone and run periodically every 24 hours.
Diffstat (limited to 'src/providers/ad/ad_common.c')
-rw-r--r--src/providers/ad/ad_common.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/providers/ad/ad_common.c b/src/providers/ad/ad_common.c
index dff1071d..e0a55c6d 100644
--- a/src/providers/ad/ad_common.c
+++ b/src/providers/ad/ad_common.c
@@ -23,6 +23,7 @@
#include "providers/ad/ad_common.h"
#include "providers/ad/ad_opts.h"
+#include "providers/dp_dyndns.h"
errno_t
ad_get_common_options(TALLOC_CTX *mem_ctx,
@@ -698,3 +699,20 @@ done:
talloc_free(tmp_ctx);
return ret;
}
+
+errno_t ad_get_dyndns_options(struct be_ctx *be_ctx,
+ struct ad_options *ad_opts)
+{
+ errno_t ret;
+
+ ret = be_nsupdate_init(ad_opts, be_ctx, ad_dyndns_opts, ad_dyndns_timer,
+ ad_opts, &ad_opts->dyndns_ctx);
+ if (ret != EOK) {
+ DEBUG(SSSDBG_OP_FAILURE,
+ ("Cannot initialize AD dyndns opts [%d]: %s\n",
+ ret, sss_strerror(ret)));
+ return ret;
+ }
+
+ return EOK;
+}