[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Have problem searching against ldap server after asyn sasl bind
- To: Qian Li <neuliqian@gmail.com>, openldap-technical@openldap.org
- Subject: Re: Have problem searching against ldap server after asyn sasl bind
- From: Howard Chu <hyc@symas.com>
- Date: Fri, 28 Nov 2014 13:43:39 +0000
- In-reply-to: <CADxGnr4HO59ExG4-12q=6yZVY5gP3Wax0Uf=XdNGX9Q9PZXjeg@mail.gmail.com>
- References: <CADxGnr4HO59ExG4-12q=6yZVY5gP3Wax0Uf=XdNGX9Q9PZXjeg@mail.gmail.com>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0 SeaMonkey/2.33a1
Qian Li wrote:
Hi All,
Recently, I tried to write a ldap client to do ldap search
asynchronously, but failed to perform search operation after a
successful async sasl (digest-md5) bind.
I’ve tried some code, but only succeeded in searching in synchronized
sasl bind.
I compared the captured sync and async packets:
In sync bind, the search packets were encrypted.
In async bind, after sasl (digest-md5) binding to ldap server
asynchronously (by calling ldap_sasl_interactive_bind() twice),
ldap_search_ext() was called. But the search packet was in plain text.
Then the ldap server reset the connection or just didn’t response (in
the case of MSAD).
Did I use the ldap API incorrectly?
No one can tell whether you did or not, without seeing your code.
Or async sasl bind doesn’t support
search operation?
async or sync makes no difference when properly used.
Any suggestion will be appreciated and sorry for my poor English.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/