diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2012-12-30 15:13:35 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2012-12-30 15:13:35 +0100 |
commit | b5155616d79c27928e07c6596750dff6d7726564 (patch) | |
tree | f12d32856374609c8d2a4cc0844d66b22579e0d7 /tests/test_myldap.c | |
parent | 2b9a630fe884822fef6e90b7c8df6287c4ffba5f (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/test_myldap.c')
-rw-r--r-- | tests/test_myldap.c | 6 |
1 files changed, 3 insertions, 3 deletions
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]; } |