Re: LDAP Connection
From: David Lowndes (davidl_at_example.invalid)
Date: 12/16/04
- Next message: Staale L. Hansen: "Loading mixed-mode application without .NET installed"
- Previous message: Jeff Partch [MVP]: "Re: Problem painting the control"
- In reply to: Raheem: "Re: LDAP Connection"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Staale L. Hansen: "Loading mixed-mode application without .NET installed"
- Previous message: Jeff Partch [MVP]: "Re: Problem painting the control"
- In reply to: Raheem: "Re: LDAP Connection"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|