[SOLVED] chained authentication
Posted: 20 Apr 2018, 16:58
Hi all, i was trying to set up mantis (2.23.1) with some sort of chained authentication that would allow to authenticate both local and active directory users.
I partially succeded doing the following:
1) i set up ldap authentication (in config/config_inc.php) towards an AD controller (so far so good)
2) changed the file core/authentication.php with the following code (seen on the forums) from
to
3) created the local users via webgui
4) setup the local users passwords directly from within mysql with the query:
with the above steps i was able to do what i want but then, after the local users log in for the first time, the passwords on db are reset to the plain version of themselves and so following logins fail.
what should i do to avoid the password update?
thanks in advance
I partially succeded doing the following:
1) i set up ldap authentication (in config/config_inc.php) towards an AD controller (so far so good)
2) changed the file core/authentication.php with the following code (seen on the forums) from
Code: Select all
if ( LDAP == $t_configured_login_method ) {
return ldap_authenticate( $p_user_id, $p_test_password );
}
Code: Select all
if ( LDAP == $t_configured_login_method ) {
if ( ldap_authenticate( $p_user_id, $p_test_password ) ) {
return true;
}
}
4) setup the local users passwords directly from within mysql with the query:
Code: Select all
update mantis_user_table set password=md5('yourpassword') where username='the_username_created_via_gui';
what should i do to avoid the password update?
thanks in advance