summaryrefslogtreecommitdiff
path: root/src/providers
diff options
context:
space:
mode:
authorOndrej Kos <okos@redhat.com>2013-09-09 15:51:15 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-13 16:34:28 +0200
commitcaf576da562bf7bd30e74ad921c1212ec7d230bc (patch)
treefc08978f2c746daebc66d1e84a4c57d22d10477e /src/providers
parent777b638893289fa0b8743415ff1945c6468bd8b0 (diff)
downloadsssd-caf576da562bf7bd30e74ad921c1212ec7d230bc.tar.gz
sssd-caf576da562bf7bd30e74ad921c1212ec7d230bc.tar.bz2
sssd-caf576da562bf7bd30e74ad921c1212ec7d230bc.zip
IPA: Deprecate ipa_hbac_support_srchost option
This option got already deprecated on the ipa server side. Option is undocumented and warning is printed both to the sssd log files and syslog. Resolves: https://fedorahosted.org/sssd/ticket/1918
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/ipa/ipa_access.c6
-rw-r--r--src/providers/ipa/ipa_hbac_hosts.c5
2 files changed, 11 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_access.c b/src/providers/ipa/ipa_access.c
index 58539f4c..7d44788a 100644
--- a/src/providers/ipa/ipa_access.c
+++ b/src/providers/ipa/ipa_access.c
@@ -346,6 +346,12 @@ static int hbac_get_host_info_step(struct hbac_ctx *hbac_ctx)
* we want all hosts
*/
hostname = NULL;
+
+ /* THIS FEATURE IS DEPRECATED */
+ DEBUG(SSSDBG_MINOR_FAILURE, ("WARNING: Using deprecated option "
+ "ipa_hbac_support_srchost.\n"));
+ sss_log(SSS_LOG_NOTICE, "WARNING: Using deprecated option "
+ "ipa_hbac_support_srchost.\n");
} else {
hostname = dp_opt_get_string(hbac_ctx->ipa_options, IPA_HOSTNAME);
}
diff --git a/src/providers/ipa/ipa_hbac_hosts.c b/src/providers/ipa/ipa_hbac_hosts.c
index 7f387c63..e85206e8 100644
--- a/src/providers/ipa/ipa_hbac_hosts.c
+++ b/src/providers/ipa/ipa_hbac_hosts.c
@@ -268,6 +268,11 @@ hbac_shost_attrs_to_rule(TALLOC_CTX *mem_ctx,
shosts->category = HBAC_CATEGORY_ALL;
ret = EOK;
goto done;
+ } else {
+ DEBUG(SSSDBG_MINOR_FAILURE, ("WARNING: Using deprecated option "
+ "ipa_hbac_support_srchost.\n"));
+ sss_log(SSS_LOG_NOTICE, "WARNING: Using deprecated option "
+ "ipa_hbac_support_srchost.\n");
}
ret = hbac_host_attrs_to_rule(tmp_ctx, domain,