xoops forums

maxxy

Quite a regular
Posted on: 3/18 12:41
maxxy
maxxy (Show more)
Quite a regular
Posts: 286
Since: 2007/6/11
#1

custom login system with XOOPS ?

Hi

im helping a friend to setup an intranet site in his office

currently they are using their own custom php/mysql system develop in house using a single sign on system whereby they have many custom php applications all use the same login credentials

i would like to use xoops but they want to use they own login system

is it possible to use their login system and use xoops at the same time

something like login using their system then store the id n password in xoops db ...or is there any other proper way

how do i do this ?

geekwright

Quite a regular
Posted on: 3/18 21:30
geekwright
geekwright (Show more)
Quite a regular
Posts: 243
Since: 2010/10/15
#2

Re: custom login system with XOOPS ?

Look in the htdocs/class/auth directory for examples of alternate authentication mechanisms. There are existing implementations for Active Directory and LDAP.

Essentially, these alternates provision a XOOPS account to correspond to the existing user in the other directory service. The authorization (login) is performed using that other service, while the permissions in XOOPS are granted to the associated provisioned account for the user.

You can extend the existing mechanism by adding a new class extending the XoopsAuth class for your needs, and adding a configoption entry for it, following the examples set by the existing classes.