GithubHelp home page GithubHelp logo

adlogin's Introduction

adLogin Plugin

  • Version 2.01

Copyright

Description

This plugin allows for integrated login with AD credentials. If you installed Mantis under IIS and want to have single signon with AD, all you need to do is the following:

  1. Disable Anonymous access for the Mantis website
  2. Ensure Integrated Windows Authentication is ticked

Users listed in the user-table with their windows username, will be automatically logged on.
In all other cases the normnl Mantis login screen will appear.

Requirements

- Mantis 2.00

Installation

Like any other plugin.

To make it work

This plugin uses the function auth_attempt_script_login, which in the past was enough for getting access. As of version 1.2.x this function offers less functionality than before. This fuction is available in core\authentication_api.php In order to overcome this, one needs to add 3 lines at the end of this function:
$p_perm_login=false;
auth_set_cookies( $t_user_id, $p_perm_login );
auth_set_tokens( $t_user_id );

Add these just before the comment line stating:
# ok, we're good to login now

In addition, one can uncomment the line:
# user_increment_login_count( $t_user_id );
It should look like:
user_increment_login_count( $t_user_id );
In that case still all logins are counted.

Disclaimer

The change mentioned above can bring additional security risks in case Mantis is on the WWW opposite an intranet.

Configuration options

  • None

License

Released under the GPL v3 license.

Support

File bug reports and submit questions on the GitHub issues tracker.

adlogin's People

Contributors

casn avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

adlogin's Issues

MantisBT user Impersonate button does not work with adLogin plugin active.

Mantis 2.26.1 with adLogin plugin v2.01

With this plugin installed you cannot impersonate users, most likely due to how Mantis checks user data while moving through the app. If you uninstall the adLogin plugin then impersonation works properly. Our organization must be able to use Mantis with active directory auto-login so this is limiting our developers' ability to test issues in Mantis that customers report (one such issue is that certain users cannot edit some tickets even though they are set as managers in that project...which probably has nothing to do with the adLogin plugin.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.