Chris's original code was using

Call "fnLDAPQuery.kix"

which actually calls a kix script that has the function in it. If you don't have that script, it won't do anything for you. So you need to actually put the function in your script like in Chris's last post.

If you haven't yet, i'd suggest reading How to use UDFs