Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-16499

Ability to lock a user account

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Verified
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.0
    • Component/s: Account, Login
    • Labels:
      None
    • Property addition/change required:
      Yes
    • Test Plan:
      Hide
      • Log in as a non-admin user. Log out.
      • Log in as an admin user.
      • Go to Administration workspace
      • find the non-admin user
        -Disable user with check box
        -Try to log in as that user
      • Should get message "Your account has been disabled."

      -Re-enable that user
      -Try to log in as that user

      Now set disabledSiteUrl=(some url) and test the same steps above and see if it takes you to that URL instead of just giving you a warning. Please note that the URL should be listed without quotes.

      Show
      Log in as a non-admin user. Log out. Log in as an admin user. Go to Administration workspace find the non-admin user -Disable user with check box -Try to log in as that user Should get message "Your account has been disabled." -Re-enable that user -Try to log in as that user Now set disabledSiteUrl=(some url) and test the same steps above and see if it takes you to that URL instead of just giving you a warning. Please note that the URL should be listed without quotes.

      Description

      It has been requested that a user account should be able to be locked to prevent login, rather than deleting the user. A flag could be added to the User object to track this. The login tools and UserDirectoryService methods could then read this and deny access if a user account is locked.

      Currently a new column has been added to the sakai_user table for disabled. This is either 1 or 0, 1 = disabled.

      If a user is disabled, then you can select where to have the user redirected to via this sakai.property

      ###

      1. Url to redirect the user to when they have been disabled
        ###
        disabledSiteUrl=https://this.user.is.disabled/disabled

      If you do not specify a disabledSiteUrl then the system will use /portal/disabled by default. You can go and create a public /portal/disabled site/page for this purpose.

      MySQL: To add the column to the db you can run the following command on MySQL

      ALTER TABLE `SAKAI_USER` ADD COLUMN `DISABLED` INT NOT NULL DEFAULT 0;

      Oracle: To add the column to the db you can run the following command on Oracle

      alter table SAKAI_USER add DISABLED number(10,0) default '0' not null;

      The patch files attached are for Sakai 2.8.1 and Kernel 1.2.6 and came from UNC Chapel Hill's MSUB Repo....

        Gliffy Diagrams

          Attachments

          1. SAK-16499_viaprops.patch
            6 kB
          2. Selection_003.jpeg
            Selection_003.jpeg
            13 kB
          3. user.patch
            2 kB

            Issue Links

              Activity

                People

                • Assignee:
                  baholladay Bryan Holladay
                  Reporter:
                  steve.swinsburg Steve Swinsburg
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code