Autologin Plugin using external table

Have a programming question regarding your component, plug-in, extension or core hacks? Have an interesting tidbit, FAQ or programming tip you’d like to share? This is the place for you.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Post Reply
User avatar
Skruu
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Dec 07, 2006 8:04 pm

Autologin Plugin using external table

Post by Skruu » Mon Sep 10, 2007 5:11 pm

I'm writing my first plugin for Joomla 1.5.
The goal I'm trying to achieve is an autologin plugin, using user and client data from external database. I want to use Joomla 1.5 for an Intranet and I don't have access to a decent LDAP.

When a user logs in into windows, their username, ip-address, date and time are logged in a separate MySQL table.
I wrote a authentication plugin based on the original Joomla Authentication plugin. When a user clicks "Login" in the Login Form, the plugin queries the seperate MySQL table for the ip-address of the client, returns the corresponding username and logs the user in into Joomla without filling in a username or password.

The next step is adapting the existing plugin or creating a new plugin so that the user gets logged in automatically when accessing the website, but I'm not sure how to proceed.

Do I have to use the onAfterInitialise function (like in the "System - Remember Me"-plugin) or is there another (better) solution?
Last edited by Skruu on Mon Sep 10, 2007 11:43 pm, edited 1 time in total.

mikeh1980

Re: Autologin Plugin using external table

Post by mikeh1980 » Fri Jan 04, 2008 10:45 pm

Hello,

How did you go with this module? Has it been released?

Mike

User avatar
Skruu
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Dec 07, 2006 8:04 pm

Re: Autologin Plugin using external table

Post by Skruu » Fri Jan 04, 2008 11:44 pm

I have a test environment with a working test autologin plugin, but I haven't fully debugged it yet.
The intranet-project has been pushed a bit forward in time and I haven't had the time to complete the plugin.
Once it's done and if the quality of the plugin satisfies me, I'll consider releasing it.

User avatar
paullehat
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Nov 19, 2005 12:54 pm

Re: Autologin Plugin using external table

Post by paullehat » Wed Feb 06, 2008 4:14 am

I've been looking for a new auto login for Joomla. Any news on progress?
Regards.
Paul Le Hat.


Post Reply