summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-03-25 15:10:56 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-03-25 12:14:14 -0400
commit6dd4421e76c46f46d0699471703e7dc221d05db5 (patch)
treebc596325ad35f00417df0d1e63abd472663d2e5e
parenta6f5518219fb3358595852eeaa9ad9c3e0410821 (diff)
downloadsssd-6dd4421e76c46f46d0699471703e7dc221d05db5.tar.gz
sssd-6dd4421e76c46f46d0699471703e7dc221d05db5.tar.xz
sssd-6dd4421e76c46f46d0699471703e7dc221d05db5.zip
Regression test against RHBZ #576856
-rw-r--r--src/providers/ipa/ipa_common.c5
-rw-r--r--src/providers/ipa/ipa_common.h5
-rw-r--r--src/tests/ipa_ldap_opt-tests.c2
3 files changed, 7 insertions, 5 deletions
diff --git a/src/providers/ipa/ipa_common.c b/src/providers/ipa/ipa_common.c
index 1fc881f41..13bb11399 100644
--- a/src/providers/ipa/ipa_common.c
+++ b/src/providers/ipa/ipa_common.c
@@ -388,11 +388,6 @@ done:
return ret;
}
-/* the following define is used to keep track of * the options in the krb5
- * module, so that if they change and ipa is not updated correspondingly
- * this will trigger a runtime abort error */
-#define IPA_KRB5_OPTS_TEST 8
-
int ipa_get_auth_options(struct ipa_options *ipa_opts,
struct confdb_ctx *cdb,
const char *conf_path,
diff --git a/src/providers/ipa/ipa_common.h b/src/providers/ipa/ipa_common.h
index 75be55e2d..571eee641 100644
--- a/src/providers/ipa/ipa_common.h
+++ b/src/providers/ipa/ipa_common.h
@@ -37,6 +37,11 @@ struct ipa_service {
* this will trigger a runtime abort error */
#define IPA_OPTS_BASIC_TEST 32
+/* the following define is used to keep track of the options in the krb5
+ * module, so that if they change and ipa is not updated correspondingly
+ * this will trigger a runtime abort error */
+#define IPA_KRB5_OPTS_TEST 8
+
enum ipa_basic_opt {
IPA_DOMAIN = 0,
IPA_SERVER,
diff --git a/src/tests/ipa_ldap_opt-tests.c b/src/tests/ipa_ldap_opt-tests.c
index 4b4667a47..e9a9ea3ff 100644
--- a/src/tests/ipa_ldap_opt-tests.c
+++ b/src/tests/ipa_ldap_opt-tests.c
@@ -27,11 +27,13 @@
#include "providers/ipa/ipa_common.h"
#include "providers/ldap/sdap.h"
+#include "providers/krb5/krb5_common.h"
#include "tests/common.h"
START_TEST(test_check_num_opts)
{
fail_if(IPA_OPTS_BASIC_TEST != SDAP_OPTS_BASIC);
+ fail_if(IPA_KRB5_OPTS_TEST != KRB5_OPTS);
}
END_TEST