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

LdapFind
Syntax
LdapFind(connName, base, search);
connName 
base
search
Description
Finds entries in the LDAP directory using an LDAP query.
Returns
resultID
The function call returns the resultID of the result set, i.e. the set of entries that match the search string.
The resultID can be used in LdapGetEntry calls to retrieve the individual entries from the result set.
""
Example
$customer=ldapFind("con","dc=streamserve,dc=com", "cn="+$customer_no);
In this example, the ldapFind function locates all entries that match the specified search string and stores the resultID in the customer variable. The customer variable can then be used in calls to LdapGetEntry to extract the actual entry, or entries, that matched the search.
OpenText StreamServe 5.6 Updated: 2013-03-01