From 816ace24cf73ad28d9d11c04edfeac1ba2ea5194 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 12 Apr 2000 08:31:32 +0000 Subject: [PATCH] objectclass=* -> NULL --- tests/progs/slapd-read.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; -- 2.39.5