From: Kurt Zeilenga Date: Wed, 12 Apr 2000 08:31:32 +0000 (+0000) Subject: objectclass=* -> NULL X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~3101 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=816ace24cf73ad28d9d11c04edfeac1ba2ea5194;p=openldap objectclass=* -> NULL --- diff --git a/tests/progs/slapd-read.c b/tests/progs/slapd-read.c index 6fa0b905b6..4709610a07 100644 --- a/tests/progs/slapd-read.c +++ b/tests/progs/slapd-read.c @@ -86,8 +86,7 @@ do_read( char *host, int port, char *entry, int maxloop ) { LDAP *ld; int i; - char *attrs[] = { "cn", "sn", NULL }; - char *filter = "(objectclass=*)"; + char *attrs[] = { "1.1", NULL }; pid_t pid = getpid(); if (( ld = ldap_init( host, port )) == NULL ) { @@ -109,7 +108,7 @@ do_read( char *host, int port, char *entry, int maxloop ) int rc; if (( rc = ldap_search_s( ld, entry, LDAP_SCOPE_BASE, - filter, attrs, 0, &res )) != LDAP_SUCCESS ) { + NULL, attrs, 1, &res )) != LDAP_SUCCESS ) { ldap_perror( ld, "ldap_read" ); if ( rc != LDAP_NO_SUCH_OBJECT ) break;