View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0006758||mantisbt||ldap||public||2006-02-27 08:51||2017-04-21 02:51|
|Target Version||Fixed in Version|
|Summary||0006758: Access level for users authenticated via LDAP determined by LDAP group membership|
For installations of Mantis with large LDAP authenticated user bases, it might be convenient for a user's access level to be (optionally) determined by membership of an (specified) LDAP group.
|Tags||No tags attached.|
This might have the added benefit of alowing more harmonisation between, and easier centralised management of, Mantis and other development systems (source code control systems for example). Certain groups could have certain levels of access in Mantis and the SCC system etc.
That makes sense. However, the question is whether this will affect only the global access level, or will there be such relationship per project. In other words, how would you like to see private projects access rights managed in your environment.
mantis.schema (449 bytes)
I've some WIP code for reading access levels from a user's LDAP entry. The access levels are read from an attribute (mantisAccessLevel by default). It's possible to store both global access level and per-project access levels by adding multiple values to the attribute.
I've also attached a LDAP schema of what I used for testing. Note that the OIDs used in the schema have NOT been registered, and are for experimental use only.
The access levels are read from LDAP during authentication, and are saved to the database. Maybe we should also disable modifying access levels from within the web front end?
Any feedback is appreciated.
I've fixed a few issues from the commit before, and also added code for pulling access levels from LDAP groups. I've tried out the changes in my own test environment, and the code is behaving as expected.
The end result is the following:
One remaining question is whether we should block users from changing access levels from the web UI, because we don't have any functionality for updating LDAP right now, just like the realname and email.
Again, any feedback is appreciated.
The following changes since commit 6ffc2de1d5816f49b1cdf002161144b28f2dc6e5:
are available in the git repository at:
Andrew Wong (9):
config_defaults_inc.php | 38 ++++++
|2006-02-27 08:51||ape||New Issue|
|2006-02-27 09:03||ape||Note Added: 0012236|
|2006-04-21 21:58||vboctor||Category||administration => ldap|
|2009-07-05 20:52||vboctor||Note Added: 0022401|
|2009-07-05 20:52||vboctor||Status||new => feedback|
|2010-11-22 01:01||andrew.w||File Added: mantis.schema|
|2010-11-22 01:01||andrew.w||Note Added: 0027441|
|2010-11-22 01:11||andrew.w||Note Edited: 0027441||View Revisions|
|2010-11-25 01:20||andrew.w||Note Added: 0027484|
|2010-11-25 01:21||andrew.w||Note Edited: 0027441||View Revisions|
|2010-11-25 01:24||andrew.w||Note Edited: 0027484||View Revisions|
|2017-04-21 02:51||atrol||Relationship added||related to 0022745|