summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2012-12-30 14:13:35 +0000
committerArthur de Jong <arthur@arthurdejong.org>2012-12-30 14:13:35 +0000
commitb5155616d79c27928e07c6596750dff6d7726564 (patch)
treef12d32856374609c8d2a4cc0844d66b22579e0d7 /tests
parent2b9a630fe884822fef6e90b7c8df6287c4ffba5f (diff)
reorganise and rename configuration options to be in line with manual page
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1888 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cfg.c2
-rw-r--r--tests/test_myldap.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_cfg.c b/tests/test_cfg.c
index 41fad50..4dbe66e 100644
--- a/tests/test_cfg.c
+++ b/tests/test_cfg.c
@@ -58,7 +58,7 @@ static void test_add_uris(void)
assert(cfg.uris[0].uri != NULL);
assert(cfg.uris[1].uri == NULL);
/* add some more uris */
- for (i = 1; i < NSS_LDAP_CONFIG_URI_MAX; i++)
+ for (i = 1; i < NSS_LDAP_CONFIG_MAX_URIS; i++)
{
add_uri(__FILE__, __LINE__, &cfg, "ldap://localhost");
assert(cfg.uris[i].uri != NULL);
diff --git a/tests/test_myldap.c b/tests/test_myldap.c
index 69bc2c5..4239082 100644
--- a/tests/test_myldap.c
+++ b/tests/test_myldap.c
@@ -364,10 +364,10 @@ static void test_connections(void)
MYLDAP_SESSION *session;
MYLDAP_SEARCH *search;
const char *attrs[] = { "uid", "cn", "gid", NULL };
- char *old_uris[NSS_LDAP_CONFIG_URI_MAX + 1];
+ char *old_uris[NSS_LDAP_CONFIG_MAX_URIS + 1];
int i;
/* save the old URIs */
- for (i = 0; i < (NSS_LDAP_CONFIG_URI_MAX + 1); i++)
+ for (i = 0; i < (NSS_LDAP_CONFIG_MAX_URIS + 1); i++)
{
old_uris[i] = nslcd_cfg->uris[i].uri;
nslcd_cfg->uris[i].uri = NULL;
@@ -391,7 +391,7 @@ static void test_connections(void)
/* clean up */
myldap_session_close(session);
/* restore the old URIs */
- for (i = 0; i < (NSS_LDAP_CONFIG_URI_MAX + 1); i++)
+ for (i = 0; i < (NSS_LDAP_CONFIG_MAX_URIS + 1); i++)
nslcd_cfg->uris[i].uri = old_uris[i];
}