Script functions reference > Script functions in alphabetical order > L > LdapReleaseResultSet

LdapReleaseResultSet
Syntax
LdapReleaseResultSet(resultID);
resultID
Description
To decrease the memory usage, you can call this function which frees result sets that are returned from ldapFind, ldapGetUser, and ldapGetObjectByDN function calls. This means that you can have a very large job that queries the LDAP server without running out of memory.
Returns
1
-1
Example
$myresults=ldapFind($myConnection, "dc=streamserve,dc=com", "objectclass=*");
ldapReleaseResultSet($myResults);
OpenText StreamServe 5.6 Updated: 2013-03-01