Re: LDAP Connection

From: David Lowndes (davidl_at_example.invalid)
Date: 12/16/04


Date: Thu, 16 Dec 2004 13:51:24 +0000


>In the above code, when it executes the first if condition,
>if ((m_ObjLdap = ldap_open(m_szLdapHost,m_nLdapPort)) == NULL )
> {
> return nRet;
> }
>
>always becoming true. So the method always return -1.
>
>But when i use , ldap_search method, its returning values successfully.

How does your code call ldap_search with a NULL handle?

>Am not able to understand after returning NULL value also when i open the
>connection, its able to search the results.

Are you using ActiveDirectory as your ldap directory?

Dave

-- 
MVP VC++ FAQ: http://www.mvps.org/vcfaq


Relevant Pages

  • Re: threads without threads
    ... > I have a counter loop which actually executes in a different thread. ... Does ANSI C provide any inherent function ... you _could_ write a wrapper function for your platform ... C++ Faq: http://www.parashift.com/c++-faq-lite ...
    (comp.lang.c)
  • Log File Program: problems btw compilers
    ... I compiled it with g++ 3.3.1 and it executes with no errors. ... inline void Log_File::resume ... C++ Faq: http://www.parashift.com/c++-faq-lite ... http://www.josuttis.com -- C++ STL Library book ...
    (comp.lang.cpp)
  • Re: LDAP Connection
    ... In the above code, when it executes the first if condition, ... always becoming true. ...
    (microsoft.public.vc.language)
  • Re: Question about CDialog
    ... Do an UpdateWindowbefore you exit; ... >is still not visible when the code in my user-defined handler ... >executes. ... >>management on my MVP Tips site. ...
    (microsoft.public.vc.mfc)
  • [PATCH V2 1/3] kernel.h: Add DO_ONCE statement expression macro
    ... that executes any arbitrary statement exactly once. ... container_of - cast a member of a structure out to the containing structure ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)