Split LDAP findUser() method into smaller functions