Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LDAP result too large, ldap OUT OF MEMORY

Status
Not open for further replies.

LdapDrivingMeCrazy

Programmer
Sep 8, 2005
3
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top