At 08:43 AM 2/25/2004, Chris Ridd wrote: >On 25/2/04 3:47 pm, Claude <[EMAIL PROTECTED]> wrote: >> I am not sure if this is a RTFM case... Here is my question, as I >> could not find the answer in the pages I read: >> >> Does it make sense to try reading the server's answer immediately >> _after_ binding, before any search is done? >> >> I'd like to test binding success for different users without having to >> run any other operation. >> >> Am I doing it wrong as I could not find a way to do that? > >You need to be slightly careful issuing multiple binds. There's some wording >somewhere in the RFCs which says that servers have to abandon all >outstanding operations on a connection when they receive new binds. > >You should be able to issue searches etc immediately after sending a bind >without waiting for a bind result. MS Outlook does this, for instance.
In general, LDAP clients should not send any request (of any kind) while a bind response is outstanding. While RFC 2251 did not explicitly preclude such, it's problematic at best. Clients which only do Bind operations, and lots of them, should likely use a pool of connections where each follows the above guidance. Kurt
