Authentication MantisBT supports several authentication techniques out of the box. In addition, there is work in progress relating to supporting authentication plug-ins. Once authentication plug-ins are implemented, then authentication against any protocol or repository of user names and passwords can be done without having to touch MantisBT core code. Although MantisBT supports multiple authentication techniques, it is important to note that MantisBT doesn't yet support hybrid authentication scenarios. For example, internal staff authentications against LDAP where customer authentications against MantisBT database.
Standard Authentication Standard, or native, authentication is where MantisBT users are authenticated against user records in the MantisBT database. The passwords are stored in the database in one of several formats: CRYPT - deprecated. CRYPT_FULL_SALT - deprecated. PLAIN - deprecated. MD5 - This is default and recommended approach. See MD5 topic on Wikipedia for more details. See $g_login_methods for more details about how to configure MantisBT to use one of the above authentication techniques.
HTTP_AUTH When MantisBT is configured to use basic auth, it automatically detects the logged in user and checks if they are already registered in MantisBT, if not, then a new account is automatically created for the username.
BASIC_AUTH TODO
LDAP Functionality is provided by using the php-ldap module (/usr/lib/php4/ldap.so). An extra login method is defined within core/user_API.php inside of function is_password_match $f_username, $p_test_password, $p_password ).This has a simple, non encrypted (yet) test of the LDAP directory for that user by asking for an entry with uid=username and password=test_password, if this exists, it is presumed that the user should be granted access. Configuration basics the LDIF format that was tested is as follows: dn: uid=tests, dc=test, dc=com, dc=au department: testdep organizationname: Testing Organization cn: Test Smith assignedgroup: users givename: Test sn: Smith mail: tests@example.com.au uid: testsuser Password: password objectclass: testPerson The password may be in clear, taken from the /etc/passwd or /etc/shadow file, or simply encrypted and added using current LDAP tools.There are some specialized software for replicating passwd to LDAP and inversely (eg. http://freshmeat.net/projects/cpu/ ). Also setup the LDAP parameters explained in the Authentication section. Don't forget to change your $g_login_method to LDAP. Creating new accountsThere is still a bit of problem when you want to create a new user to MantisBT using LDAP, you must create the LDIF entry to LDAP, and also sign up for a new account, if both of these line up correctly, authentication will proceed. Email is queried from the LDAP database if the authentication is set to use LDAP instead of the user record in the database entry.
Microsoft Active Directory TODO