mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
objectclass=* -> NULL
This commit is contained in:
parent
2d4fb1e6e1
commit
816ace24cf
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue