LdapDrivingMeCrazy
Programmer
Can anyone help out here ????
I am writing a C program using LDAP API within.
I have an LDAP tree of about 5 million records. As the result, my ldap_search_s always return an error and never could complete.
filter = "(&(cn=*)(objectclass=Customers))";
lderr = ldap_search_s( ld, search_dn, LDAP_SCOPE_ONELEVEL, filter, NULL, 0, &result );
The error message is: LDAP OUT OF MEMORY.
How do you go around this ? Do I have to break it up into smaller pieces and search 4,5 different times and live with it ?
Thank you
I am writing a C program using LDAP API within.
I have an LDAP tree of about 5 million records. As the result, my ldap_search_s always return an error and never could complete.
filter = "(&(cn=*)(objectclass=Customers))";
lderr = ldap_search_s( ld, search_dn, LDAP_SCOPE_ONELEVEL, filter, NULL, 0, &result );
The error message is: LDAP OUT OF MEMORY.
How do you go around this ? Do I have to break it up into smaller pieces and search 4,5 different times and live with it ?
Thank you