> > // Note: attribute list is NULL
> > int searchStatus = ldap_search_s( LDAPPtr , "o=ldap_abc.de" ,
> > LDAP_SCOPE_SUBTREE , "(ou=Mkt)" , NULL , 0 , &response ) ;
> > int countOfResultEntries = ldap_count_entries( LDAPPtr , response ) ;
> > ---------
> 
> My guess is that a value of NULL returns all readable non-operational
> attributes.  But I'm only guessing.  I'd ethereal the connection and see what
> is in it.  Why not just request the attribute "dn"?
> 
You are right. 'man' page also mentions the same:
------man ldap_search_s-------
If NULL is specified, all attributes will be returned.
------man ldap_search_s-------

It is required to pass a constant like 'LDAP_RETURN_NO_ATTR' whose value
is "1.1" in the attribute list. This still seems to return all the 'dn's
matching the search criteria, but not any other additional attributes.

---
You are currently subscribed to [email protected] as: [EMAIL PROTECTED]
To unsubscribe send email to [EMAIL PROTECTED] with the word UNSUBSCRIBE as the 
SUBJECT of the message.

Reply via email to