I'm trying to modify the restful_authentication plugin so that it
first authenticates against LDAP (Active Directory), if successful, it
tries to find a matching user with the same username in the database,
through a model 'user'. If it finds a user, it updates a last_login
attribute; if it doesn't find one, it creates one. The "remember me"
functionality is also incorporated.
I have incorporated these changes into the sessions controller and
that is all working fine but I don't know how to incorporate them into
the authenticated_system module. Basically the authenticated_system.
I suppose my question really is: Is it okay for a model class to
create an instance of itself in a class method? As this is the only
way I can think of keeping the http authentication that is offered by