Convenience function for searching LDAP.

Can be used by other areas to quickly search the LDAP directory. Results
are cached in order to minimize hits on the LDAP server. This could also
be used when adding users, although at present the only thing cached
is the username (e-mail).