Hello,

I'm trying to implement a ldap persistenst search for notification. I've come across 
an error in the function ldap_get_entry_controls().
This function takes a LDAP*, a LDAPMessage* and a LDAPControl** argument.
Apparently it returns a LDAP_PARAM_ERROR. I've checked all parameters and debugged it. 
In the ldap c sdk file getentry.c the function ldap_get_entry_controls() won't accept 
a LDAPMessage* as an LDAPMessage*. Has anyone seen this problem, or am I making a 
mistake. Here's my code:

LDAPMessage *e;
LDAPControl **resultctrls;

if (ldap_get_entry_controls(ldap,
                            e,
                            &resultctrls) != LDAP_SUCCESS) {
               // Handle.
}

Cheers,

Roger
__________________________________________________________________
Get your own FREE, personal Netscape Webmail account today at 
http://webmail.netscape.com/

Reply via email to