summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2013-03-19 15:53:44 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-04-10 15:36:55 +0200
commitf9961e5f82e0ef474d6492371bfdf9e74e208a99 (patch)
tree694e2f0d92c1324fb44c906de911cc4e34685e4a /src/util
parent673d4c1932fa4ab1496499207d8627970d0b7561 (diff)
downloadsssd-f9961e5f82e0ef474d6492371bfdf9e74e208a99.tar.gz
sssd-f9961e5f82e0ef474d6492371bfdf9e74e208a99.tar.xz
sssd-f9961e5f82e0ef474d6492371bfdf9e74e208a99.zip
DNS sites support - SRV lookup plugin interface
https://fedorahosted.org/sssd/ticket/1032 Introduces two new error codes: - ERR_SRV_NOT_FOUND - ERR_SRV_LOOKUP_ERROR Since id_provider is authoritative in case of SRV plugin choise, ability to override the selected pluging during runtime is not desirable. We rely on the fact that id_provider is initialized before all other providers, thus the plugin is set correctly.
Diffstat (limited to 'src/util')
-rw-r--r--src/util/util_errors.c2
-rw-r--r--src/util/util_errors.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/util/util_errors.c b/src/util/util_errors.c
index 475a3cbd8..b5c1928cb 100644
--- a/src/util/util_errors.c
+++ b/src/util/util_errors.c
@@ -41,6 +41,8 @@ struct err_string error_to_str[] = {
{ "Account Expired" }, /* ERR_ACCOUNT_EXPIRED */
{ "Password Expired" }, /* ERR_PASSWORD_EXPIRED */
{ "Host Access Denied" }, /* ERR_ACCESS_DENIED */
+ { "SRV record not found" }, /* ERR_SRV_NOT_FOUND */
+ { "SRV lookup error" }, /* ERR_SRV_LOOKUP_ERROR */
};
diff --git a/src/util/util_errors.h b/src/util/util_errors.h
index b4dfaf85f..4f7c0086e 100644
--- a/src/util/util_errors.h
+++ b/src/util/util_errors.h
@@ -63,6 +63,8 @@ enum sssd_errors {
ERR_ACCOUNT_EXPIRED,
ERR_PASSWORD_EXPIRED,
ERR_ACCESS_DENIED,
+ ERR_SRV_NOT_FOUND,
+ ERR_SRV_LOOKUP_ERROR,
ERR_LAST /* ALWAYS LAST */
};