MantisBT: master 25987317

Author Committer Branch Timestamp Parent
vboctor vboctor master 2014-10-21 18:55 master 423a7752
Affected Issues  0015869: API call mc_login with valid LDAP user which is not in mantis DB -> result: login failed
Changeset

mc_login() should auto-create valid LDAP users

The web login logic auto-creates users in case of BASIC AUTH and LDAP when they don't exist. However, the SOAP API didn't.

This fix includes:

  • When user authenticates using SOAP API, re-use the same auto-creation logic to create the user in case of valid credentials.

  • When a user is auto-created, execute post login checks and processing like login count, cookies, tokens, etc. This fix applies to the web interface code path.

Fixes 0015869

mod - core/authentication_api.php Diff File