Collapse user_ and group_ functions into one with a 'searchtype' argument.
- use functools partial to pass in 'searchtype' from decorators
Create ldap_attrs function
pep8