[Date Prev][Date Next] [Chronological] [Thread] [Top]

Problem with ldap_search????




Hi all,
               I am using asynchronous mode for searching through a directory.
When I use ldap_search for doing this, I get Protocol Error. What does this
mean.
For the same basedn and search filter, if ldap_search_s is used, I don't get any
error.

What is the problem.

the lines of code for these is as follows.

if ((rc =ldap_search(ld, "subs-id=90000,dc=ssdb",LDAP_SCOPE_BASE,"(objectclass=*
)",NULL, 0)) != LDAP_SUCCESS)

For asynchronous operation.

for synchronous I used::

if ((rc =ldap_search_s(ld, "subs-id=90000,dc=ssdb",LDAP_SCOPE_BASE,"(objectclass
=*)",NULL, 0,&rec)) != LDAP_SUCCESS)

It worked fine.

What can be the problem.

Thanx in advance
-Shashi

DISCLAIMER: This message is proprietary to Hughes Software Systems
Limited (HSS) and is intended solely for the use of the individual
to whom it is addressed. It may contain  privileged or confidential
information  and should not be circulated or used for any purpose other
than for what it is intended. If you have received this message in error,
please notify the originator immediately. If you are not the intended
recipient, you are notified that you are strictly prohibited from using,
copying, altering, or disclosing the contents of this message. HSS accepts
no responsibility for loss or damage arising from the use of the information
transmitted by this email including damage from virus.