~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/authentication.cc

This modifies basic auth such that:

1) We now by default only bind to localhost.
2) We now have a plugin which creates the auth_all behavior.
3) Anonymous logins only work if enabled on auth_all.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
bool plugin::Authentication::isAuthenticated(drizzled::identifier::User::const_reference sctx,
68
68
                                             const std::string &password)
69
69
{
70
 
  /* If we never loaded any auth plugins, just return true */
71
 
  if (all_authentication.empty())
72
 
    return true;
73
 
 
74
70
  /* Use find_if instead of foreach so that we can collect return codes */
75
71
  std::vector<plugin::Authentication *>::iterator iter=
76
72
    std::find_if(all_authentication.begin(), all_authentication.end(),