#168 Custom Authentication Level for Students

open
nobody
None
5
2012-07-20
2011-05-16
auhsor
No

Hi,
We are currently using MRBS at our school to manage room bookings with our staff. We are not wanting to open this up to students so they can book a select number of general purpose rooms.

Is is possible to have a custom authentication level for them so they can't go and book rooms all over the place?

We don't want to restrict our staff so that they need to be approved for bookings - we just want to restrict students to be able to book only a select rooms/resources.

Is this possible?

Discussion

  • Campbell Morrison

    Without modifying MRBS, the only way to achieve this is by having two MRBS installations - one for the staff and one for the students.

    However, if you are up to a bit of PHP then it is not too difficult to modify MRBS to do what you want. The function getWritable($creator, $user, $room) in mrbs_auth.inc controls whether users can book a room. It takes $room as a parameter, though this is not used by the function in standard MRBS. However it would be easy for you to modify this function so that it took account of $room.

    Campbell

     
  • auhsor

    auhsor - 2011-05-17

    Thanks for that Campbell - you pointed me in the right direction. I know a little PHP so I had fun trying to work it all out. We couldn't have two installations because staff and students need to be able to book the same room.

    I determined when a student was logging in by checking the order of ldap base that got called. I stored this is a session variable and then checked that variable in the getWritable function. Its not pretty and probably not 100% secure but it works for me.

    Josh

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks