Simple Machines Community Forum

Customizing SMF => Bridges and Integrations => Topic started by: Leidenschafft on December 07, 2007, 05:50:49 PM

Title: Mantis Bugtracker: SMF Auth
Post by: Leidenschafft on December 07, 2007, 05:50:49 PM
hi, as i wanted to integrate the mantis bugtracker into my environment, but also allow my smf-users to auto-login there through smf-cookies, here is the magic:

1. install mantis_rights.zip (http://www.deubert.net/smf_mods/mantis_rights/mantis_rights.zip) as a mod to your smf

2. download smf_auth.zip (http://www.deubert.net/mantis_mods/smf_auth/smf_auth.zip), unzip to a local folder

3. let's do some configuration there:

./index.php


    print_header_redirect( 'http://www.malganis.de/forum/login.html' );

    -> path to your smf login
   
./core/authentication_api.php


    require_once( '/www/htdocs/anbaeuig/forum/smf_api.php' );

    -> path to your smf_api.php

./core/user_api.php


    require_once( '/www/htdocs/anbaeuig/forum/smf_api.php' );

    -> path to your smf_api.php


4. shut down all mantis account-functions (as we want to use the smf db purely), by adding:

./config_inc.php

    $g_allow_signup = OFF;
    $g_send_reset_password = OFF;
    $g_lost_password_feature = OFF;
    $g_allow_anonymous_login = OFF;
    $g_anonymous_account = '';
    $g_allow_account_delete = OFF;



5. replace the standard mantis files with the new ones

---

notes:
- does only work if your smf cookies are set for the domain your mantis is in
- i don't know if there are problems with any specialchars in names

i will install this modifications to your environment [paid] if you need help.


demo:
http://www.malganis.de/forum (smf)
http://www.malganis.de/dev/mantis (mantis)
(german pages)
Title: Re: Mantis Bugtracker: SMF Auth
Post by: acsieben on March 21, 2008, 03:45:36 PM
Hi,

I am having some issues applying this, can you help me out?


I'm getting this error when trying to open mantis:
QuoteFatal error: 401 in /home/**REPLACED**/bugtracker/core/database_api.php on line 187

Thank you
Title: Re: Mantis Bugtracker: SMF Auth
Post by: deekthesqueak on July 28, 2009, 11:50:52 AM
When I tried to apply this mod to my board (1.1.10) it did not work (no surprise there).  If I wanted to use SMF's user database & auth in mantis would this be an instance when I want use SSI?
Title: Re: Mantis Bugtracker: SMF Auth
Post by: H on August 03, 2009, 08:42:30 AM
SSI could probably be used to help achieve this although you'd still need a fair bit of custom code. We're using Mantis with SMF here so it is certainly possible. Unfortunately our integration is not currently public.