~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/auth_pam/auth_pam.cc

Merged in plugin-slot-reorg patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
  return PAM_SUCCESS;
80
80
}
81
81
 
82
 
class Auth_pam : public Authentication
 
82
class Auth_pam : public drizzled::plugin::Authentication
83
83
{
84
84
public:
85
85
  virtual bool authenticate(Session *session, const char *password)
107
107
};
108
108
 
109
109
 
110
 
static Authentication *auth= NULL;
 
110
static Auth_pam *auth= NULL;
111
111
 
112
112
static int initialize(drizzled::plugin::Registry &registry)
113
113
{
114
114
  auth= new Auth_pam();
115
 
  registry.add(auth);
 
115
  registry.authentication.add(auth);
116
116
  return 0;
117
117
}
118
118
 
121
121
 
122
122
  if (auth)
123
123
  {
124
 
    registry.remove(auth);
 
124
    registry.authentication.remove(auth);
125
125
    delete auth;
126
126
  }
127
127