View Issue Details

IDProjectCategoryView StatusLast Update
0012059mantisbtintegrationpublic2020-06-15 06:16
Reporterrattkin Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Platformdokuwiki 
Product Version1.2.1 
Summary0012059: dokuwiki integration not comaptibile with apache auth
Description

I can use dokuwiki integration single sign on without problems. I have followed: http://www.mantisbt.org/wiki/doku.php/mantisbt:issue:7075:integration_with_dokuwiki

Our Mantis and dokuwiki sites are publicly reachable, but protected with apache auth when user is not on company internal network.

When trying to access wiki site from the internet, I am not able to log on. I lose the mantis login if I was logged.

Login and password entered into apache auth window goes into dokuwiki\inc\auth\mantis.class.php instead of credentials I enter into dokuwiki or mantis.

TagsNo tags attached.

Activities

rattkin

rattkin

2010-06-14 08:35

reporter   ~0025846

Last edited: 2020-06-15 06:16

View 2 revisions

By commenting the following segment from dokuwiki\inc\auth\mantis.class.php, I was able to make single sign-on work even when dokuwiki is protected by apache auth:

 // Has a user name been provided?
        if ( !empty ( $user ) )
        {
            // User name provided, so login via form in progress...
            // Are the specified user name and password valid?
            if ( auth_attempt_login ( $user, $pass, $sticky ) )
            {
                // Credential accepted...
                $_SERVER['REMOTE_USER'] = $user; // Set the user name (makes things work...)
                $ValidUser = true; // Report success.
            }
            else
            {
                // Invalid credentials
                        if ( !$silent )
                {
                    sg ( $lang [ 'badlogin' ], -1 );
                }

                $ValidUser = false;
            }
        }
        else
        {

EDIT (dregad): markdown

toddpw

toddpw

2011-08-28 16:18

reporter   ~0029577

I believe that call to 'sg' is a typo. It should be 'msg'.

I had to fix it to get PHP errors to stop when I set up my DokuWiki recently.

I've updated the preferred wiki page that most of the obvious links direct you to on the Mantis wiki.

Issue History

Date Modified Username Field Change
2010-06-14 08:33 rattkin New Issue
2010-06-14 08:35 rattkin Note Added: 0025846
2011-08-28 16:18 toddpw Note Added: 0029577
2020-06-15 06:16 dregad Note Edited: 0025846 View Revisions