objectclass=* -> NULL

This commit is contained in:
Kurt Zeilenga 2000-04-12 08:31:32 +00:00
parent 2d4fb1e6e1
commit 816ace24cf

View file

@ -86,8 +86,7 @@ do_read( char *host, int port, char *entry, int maxloop )
{ {
LDAP *ld; LDAP *ld;
int i; int i;
char *attrs[] = { "cn", "sn", NULL }; char *attrs[] = { "1.1", NULL };
char *filter = "(objectclass=*)";
pid_t pid = getpid(); pid_t pid = getpid();
if (( ld = ldap_init( host, port )) == NULL ) { if (( ld = ldap_init( host, port )) == NULL ) {
@ -109,7 +108,7 @@ do_read( char *host, int port, char *entry, int maxloop )
int rc; int rc;
if (( rc = ldap_search_s( ld, entry, LDAP_SCOPE_BASE, 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" ); ldap_perror( ld, "ldap_read" );
if ( rc != LDAP_NO_SUCH_OBJECT ) break; if ( rc != LDAP_NO_SUCH_OBJECT ) break;