News:

Wondering if this will always be free?  See why free is better.

Main Menu

Mantis Bugtracker: SMF Auth

Started by Leidenschafft, December 07, 2007, 05:50:49 PM

Previous topic - Next topic

Leidenschafft

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 hxxp:www.deubert.net/smf_mods/mantis_rights/mantis_rights.zip [nonactive] as a mod to your smf

2. download hxxp:www.deubert.net/mantis_mods/smf_auth/smf_auth.zip [nonactive], 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:
hxxp:www.malganis.de/forum [nonactive] (smf)
hxxp:www.malganis.de/dev/mantis [nonactive] (mantis)
(german pages)

acsieben

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

deekthesqueak

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?

H

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.
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

Advertisement: