Four eyes feature

Issue #481 resolved
Former user created an issue

Implement a feature that the login is restricted to "four eyes". That means a login is only possible if two users (e.g. Administrator an Auditor) log in at the same time.

Comments (22)

  1. thooge

    No.

    There should be an option where both users must sit in front of the screen and both must enter the password. A login screen with two users and two passwords. In the highest security mode one administrator alone is not allowed to access the system.

  2. Janos SUTO repo owner

    OK, I see. Is it for 'super users' (=auditor users) only or even a regular user would be restricted with this feature? Note that administrator is not to be used for searching, since they have no such elevated rights, rather they should be used for only administering, configuring piler, etc, but searching.

  3. thooge

    At first sight i would say a regular user has access to its own mails. Thats fine.

    The four eyes feature should apply to administrators and auditors: A auditor is only allowed to login together with an administrator

    A second feature could be: A administrator is only allowed to login with a second administrator.

  4. Janos SUTO repo owner

    OK, thanks for clarifying, it makes sense. I'll let you know when the feature is ready to test.

  5. Karsten Bandlow

    We use such a feature with a splitted password. Both users know only their part of the password.

  6. Janos SUTO repo owner

    Actually this is quite a good idea, at least in the sense of that it's actually already usable. Though there's one drawback: someone has to know the complete (=both parts) password. Anyway if thooge accepts it, then we are done here.

  7. thooge

    For the splitted password there must be exactly 2 well known persons who share the password. It does not fit for the situation where from a set of <n> persons must be <m> (with m <= n) logged in together, for the most complicated use-case.

    To make it just a little bit more complicated: perhaps someone wants the feature "if there are the groups administrators and auditors, one person must be of the group administrators and another person member of auditors". Ok, that would be "advanced configuration" ;-)

    @Jutso: I don't think anyone must know the whole splitted password. If a new password is needed, both persons must be there and each of them enters his part.

    So finally i can use the workaround for now but it would be nice to have such a feature in the future. Perhaps don't close the ticket but set it to lower priority.

  8. Janos SUTO repo owner

    OK, then I'll redesign the session data of the authenticated user to prevent the 2nd auth session take over. I'll add a new config option, and if it's set and an auditor tries to login, then it redirects the page to another login form where an admin can also type his auth credentials.

  9. Janos SUTO repo owner

    I've just updated the master branch, please check out the 4eyes feature. To enable it set the following in config-site.php:

    $config['FOUR_EYES_LOGIN_FOR_AUDITOR'] = 1;
    

    Then after you login as auditor, you have to type an admin account as well.

  10. eggi

    Hi jsuto !

    How is the procedure to install the update ? So, i can give you a feedback for the new feature

    thanks

    Chris

  11. Janos SUTO repo owner

    If you have 1.1.0, then download the master branch (see the download section), and update (=overwrite) the gui.

  12. eggi

    the issues is the combination 4eyes auth and auth imap server if i switch off the imap server auth the 4eye auth works but not in combination

  13. thooge

    I have a standard installation and it seems to work. Thank you very much :-) There is a minor improvement possible: Please add a cancel-button to the second login. If the first login was successful there seems to be no way back to abort the login-process and restart again.

  14. Janos SUTO repo owner

    @thooge: ok, I've added a cancel button which redirects you to logout.php, and allows you to start it over.

    @ceggi: I'm confused how the imap login attempt interferes with the 4eyes feature. Both auditor and admin accounts should exist only in the local piler database. Please describe what happens when you turn on both 4eyes and imap auth.

  15. eggi

    if i actived booth : auditor login, the system switch to the 4eye procedure ( 2. login ) and when i use the auditor login again, the system let me in so this is not 4eye auth except i`m wearing glases ;-)

  16. Janos SUTO repo owner

    I can't reproduce it. Check if you have the following line in controler/login/foureyes.php:

    syslog(LOG_INFO, "user " . $data2['username'] . " is not an admin user");
    

    If not, then download the master branch again, and update the gui files.

  17. Log in to comment