Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This is a hack. Unfortunately I could not find a description of how to put MantisBT behind Apache with NTLM auth.
- Set authentication to BASIC_AUTH.
- ``core/authentication_api.php`` - comment out lines 289-291 to disable password check:
- ```php
- // if( !auth_does_password_match( $t_user_id, $p_password ) ) {
- // user_increment_failed_login_count( $t_user_id );
- // return false;
- // }
- ```
- ``login.php`` line 60 - force user name to remote user and provide some password string:
- ```php
- $f_username = $_SERVER['REMOTE_USER']; //auth_prepare_username( $f_username );
- $f_password = 'some_password'; //auth_prepare_password( $f_password );
- ```
- ``index.php`` line 39 - change ``login_page.php`` to ``login.php``:
- ```php
- print_header_redirect( 'login.php' );
- ```
- ``layout_api.php`` - comment out lines 505 and 508:
- ```php
- // echo '<li class="divider"></li>';
- # Logout
- // layout_navbar_menu_item( helper_mantis_url( 'logout_page.php' ), lang_get( 'logout_link' ), 'fa-sign-out' );
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement