Create ldapSearchLookup(key) function