Server Authentication

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
gerb42
Posts: 14
Joined: 17 Jan 2007, 17:06

Server Authentication

Post by gerb42 »

Hi all,

I have mantis 1.0.6 runnig on a server which already requires users to log on. Is it possible to make mantis use this credentials? If yes, how?

thx
ed
Posts: 143
Joined: 14 Feb 2005, 02:04
Location: Sydney, Australia

Post by ed »

gerb42
Posts: 14
Joined: 17 Jan 2007, 17:06

Post by gerb42 »

Hi ed,

I already tried this options. Maybe some more Info about the scenario would help:

The Apache Server requests a username and password which it uses to authenticate users via LDAP against our AD, so users can log in using their Windows account name and password.

If I set Mantis to use the very same LDAP Repository users will have to enter their name and password twice. If I set Mantis to BASIC_AUTH it will try to check the password against its own database which will fail if the passwords in LDAP and database do not match. This is likely to happen since we have a password policy requiring to change passwords every six weeks.

What I would like Mantis to do is either accepting the username as-is if it exists in the database or check it silently against LDAP, bypassing the login page if this succeeds.
ed
Posts: 143
Joined: 14 Feb 2005, 02:04
Location: Sydney, Australia

Post by ed »

Sorry, no idea.
gerb42
Posts: 14
Joined: 17 Jan 2007, 17:06

Post by gerb42 »

Ok, in Method auth_attempt_login I replaced the following line:

Code: Select all

if ( !auth_does_password_match( $t_user_id, $p_password ) ) {
with this one:

Code: Select all

if ( HTTP_AUTH != $t_login_method && !auth_does_password_match( $t_user_id, $p_password ) ) {
and changed $g_login_method to HTTP_AUTH. This seems to do the Trick.
Post Reply