Wow! That has got to be the coolest and most imaginative use of fnLDAPQuery() I've seen yet. Please share the full code when you get it working.