~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/auth_pam/auth_pam.cc

  • Committer: Brian Aker
  • Date: 2008-10-20 04:28:21 UTC
  • mto: (492.3.21 drizzle-clean-code)
  • mto: This revision was merged to the branch mainline in revision 530.
  • Revision ID: brian@tangent.org-20081020042821-rqqdrccuu8195k3y
Second pass of thd cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
  return PAM_SUCCESS;
70
70
}
71
71
 
72
 
static bool authenticate(Session *thd, const char *password)
 
72
static bool authenticate(Session *session, const char *password)
73
73
{
74
74
  int retval;
75
75
  auth_pam_userinfo userinfo= { NULL, NULL };
76
76
  struct pam_conv conv_info= { &auth_pam_talker, (void*)&userinfo };
77
77
  pam_handle_t *pamh= NULL;
78
78
 
79
 
  userinfo.name= thd->main_security_ctx.user;
 
79
  userinfo.name= session->main_security_ctx.user;
80
80
  userinfo.password= password;
81
81
 
82
82
  retval= pam_start("check_user", userinfo.name, &conv_info, &pamh);