Mambo with Weblogin

|

USAGE SCENARIO

1) Login: When the index page is first hit, user is redirected to the weblogin page for BLAZERID authentication. On successful authentication, the user is redirected back to the index page of Mambo. Here the user can browse anonymously. To edit or add content, user has to click on the 'LOGIN' button provided. User does not have to input username or password as it is provided by the weblogin service.

2) First-time login: The user should have a valid BlazerID to access Mambo. An account is automatically created the first time a user accesses the site.

IMPLEMENTATION STEPS

1) The login() function in the file mambo.php was modified to accept username as $REMOTE_USER instead of a POST from the index.php page. The password is set as a constant for all users and email address is set as username@uab.edu.

2) The login() function in mambo.php now checks if the user already exists in the database or is new. If new, then insert that user into the users database along with permissions and group ids, thus providing accounts for every new user.

OBSTACLES

1) The application was configured with the site-name with http protocol. Hence the stylesheet couldnt be viewed. Updating the site-name to https protocol did the trick and the stylesheet is loaded perfectly now.

2) The news submission item is still disabled for all users. This might have to do with setting permissions right for that action