diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2012-03-28 13:04:44 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-03-28 15:07:05 -0400 |
commit | 51e6f026f7b8bcd6c429b10044abacc4f2393305 (patch) | |
tree | f720dbf9c45d3f7e9de55d7a03aa24cd80151e0e /src/providers/ipa/ipa_common.c | |
parent | 4ed94554593e8a20fa361ea8d7a7f223dc6ee4e8 (diff) | |
download | sssd-51e6f026f7b8bcd6c429b10044abacc4f2393305.tar.gz sssd-51e6f026f7b8bcd6c429b10044abacc4f2393305.tar.bz2 sssd-51e6f026f7b8bcd6c429b10044abacc4f2393305.zip |
Remove old compatibility tests
These are now replaced by the more accurate tests.
This patch also drops the runtime option-count check, since we are
always performing the more complete check at build-time.
Diffstat (limited to 'src/providers/ipa/ipa_common.c')
-rw-r--r-- | src/providers/ipa/ipa_common.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/providers/ipa/ipa_common.c b/src/providers/ipa/ipa_common.c index 3ba666e2..5d2f7987 100644 --- a/src/providers/ipa/ipa_common.c +++ b/src/providers/ipa/ipa_common.c @@ -176,14 +176,6 @@ int ipa_get_id_options(struct ipa_options *ipa_opts, int ret; int i; - /* self check test, this should never fail, unless someone forgot - * to properly update the code after new ldap options have been added */ - if (SDAP_OPTS_BASIC != IPA_OPTS_BASIC_TEST) { - DEBUG(0, ("Option numbers do not match (%d != %d)\n", - SDAP_OPTS_BASIC, IPA_OPTS_BASIC_TEST)); - abort(); - } - tmpctx = talloc_new(ipa_opts); if (!tmpctx) { return ENOMEM; @@ -586,14 +578,6 @@ int ipa_get_auth_options(struct ipa_options *ipa_opts, char *copy = NULL; int ret; - /* self check test, this should never fail, unless someone forgot - * to properly update the code after new ldap options have been added */ - if (KRB5_OPTS != IPA_KRB5_OPTS_TEST) { - DEBUG(0, ("Option numbers do not match (%d != %d)\n", - KRB5_OPTS, IPA_KRB5_OPTS_TEST)); - abort(); - } - ipa_opts->auth = talloc_zero(ipa_opts, struct dp_option); if (ipa_opts->auth == NULL) { ret = ENOMEM; |