summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-03-26 16:49:26 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-05-03 20:22:29 +0200
commit9cb46bc62f22e0104f1b41a423b014c281ef5fc2 (patch)
tree375254d502d24d51072cf9668fe3a09977ce1edc /src/util
parentc080a11e9e88f35e40aff4e476cabbd971833019 (diff)
downloadsssd-9cb46bc62f22e0104f1b41a423b014c281ef5fc2.tar.gz
sssd-9cb46bc62f22e0104f1b41a423b014c281ef5fc2.tar.xz
sssd-9cb46bc62f22e0104f1b41a423b014c281ef5fc2.zip
Refactor dynamic DNS updates
Provides two new layers instead of the previous IPA specific layer: 1) dp_dyndns.c -- a very generic dyndns layer on the DP level. Its purpose it to make it possible for any back end to use dynamic DNS updates. 2) sdap_dyndns.c -- a wrapper around dp_dyndns.c that utilizes some LDAP-specific features like autodetecting the address from the LDAP connection. Also converts the dyndns code to new specific error codes.
Diffstat (limited to 'src/util')
-rw-r--r--src/util/util_errors.c3
-rw-r--r--src/util/util_errors.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/util/util_errors.c b/src/util/util_errors.c
index b5c1928cb..b617f5406 100644
--- a/src/util/util_errors.c
+++ b/src/util/util_errors.c
@@ -43,6 +43,9 @@ struct err_string error_to_str[] = {
{ "Host Access Denied" }, /* ERR_ACCESS_DENIED */
{ "SRV record not found" }, /* ERR_SRV_NOT_FOUND */
{ "SRV lookup error" }, /* ERR_SRV_LOOKUP_ERROR */
+ { "Dynamic DNS update failed" }, /* ERR_DYNDNS_FAILED */
+ { "Dynamic DNS update timed out" }, /* ERR_DYNDNS_TIMEOUT */
+ { "Dynamic DNS update not possible while offline" }, /* ERR_DYNDNS_OFFLINE */
};
diff --git a/src/util/util_errors.h b/src/util/util_errors.h
index 4f7c0086e..a602a6ea9 100644
--- a/src/util/util_errors.h
+++ b/src/util/util_errors.h
@@ -65,6 +65,9 @@ enum sssd_errors {
ERR_ACCESS_DENIED,
ERR_SRV_NOT_FOUND,
ERR_SRV_LOOKUP_ERROR,
+ ERR_DYNDNS_FAILED,
+ ERR_DYNDNS_TIMEOUT,
+ ERR_DYNDNS_OFFLINE,
ERR_LAST /* ALWAYS LAST */
};