[Dhis2-devs] Decentralization of user management

Is this a default behaviour or something which can be controlled.through a setting? I guess my question is more about whether there is a separate “GRANT” setting which can be assigned to users to give them this privilege?

···

Sent from my HTC

----- Reply message -----
From: “Lars Helge Øverland” larshelge@gmail.com
Date: Sat, Jun 11, 2011 10:24
Subject: [Dhis2-devs] Decentralization of user management
To: dhis2-users@lists.launchpad.net, “DHIS 2 developers” dhis2-devs@lists.launchpad.net

Hi,

one learning from Kenya is that “local concerns” such as assignment of
services (datasets) and classification (group assignment) of facilities
should be decentralized to district managers as they can perform this task
more efficiently and with a better understanding of their local area.

We now increasingly see that facility users start entering data online
themselves and decentralizing management of facility user accounts would be
a good idea. This comes with a few challenges however as we want to provide
them the ability only to create users with “less” authority than what they
have themselves. We have now implemented a solution for this in trunk which
implies that a user can issue a user role to a new user if:

  • The current user has the ALL authority OR the issued user role authority
    group is a subset of the aggregated authorities of the current user (i.e.
    the current user has all of the authorities he wants to issue to another
    user.)

  • The issued user role is NOT among the current user’s user roles (i.e. the
    current user can not issue his own user roles to another user.)

The latter rule is there e.g. because we don’t want districts users to
create new district users, rather to create facility users only.

This solution means that it is now sensible to allow district and province
users access to the user module. Just to keep you informed…

Lars

It is important to decentralise user management as we promote data use at point of collection as well as increase people's participation from the district level.. this will also enhance the data ownership and encourage use.

PEPELA WANJALAMINISTRY OF HEALTH HEADQUARTERSHEALTH INFORMATION SYSTEMAFYA HOUSE, HIS LG 37P.O BOX 30016, NAIROBI, KENYATEL: +254 (020) 2717077 EXT 45097CELL: +254 (0) 722375633 or 0202033363EMAIL: wanjala2p@yahoo.com hmis@health.go.ke

···

--- On Sat, 6/11/11, jason.p.pickering@gmail.com <jason.p.pickering@gmail.com> wrote:

Hi Jason,

yes this is default behavior and there is currently no way to explicitly set what user roles one is allowed to grant (it is detected automatically based on what authorities the current user has). It wasn’t seen as necessary at the moment and it make things a bit more complex but if there is a strong use-case for it we can look into it…

Lars

···

On Sat, Jun 11, 2011 at 2:39 PM, jason.p.pickering@gmail.com jason.p.pickering@gmail.com wrote:

Is this a default behaviour or something which can be controlled.through a setting? I guess my question is more about whether there is a separate “GRANT” setting which can be assigned to users to give them this privilege?

I haven't seen this requirement yet, but in Rwanda we are using DHIS-2 as the national data warehouse and dashboard. I would like to see an option for public users to be able to sign on and create their own username and passwords. This would entitle them only to access the dashboard and GIS modules. It should also enable users to reset their passwords if they are forgotten - by sending an email to their registered email address with a system generated token/key that they plug into the reset password screen.

Once this dashboard is enabled for all Ministry users this feature will save a lot of effort setting up and resetting passwords by admin staff. Joomla! Does this nicely.

Randy Wilson

···

From: dhis2-users-bounces+rwilson=msh.org@lists.launchpad.net [mailto:dhis2-users-bounces+rwilson=msh.org@lists.launchpad.net] On Behalf Of wanjala pepela
Sent: Saturday, June 11, 2011 4:08 PM
To: Lars Helge Øverland; dhis2-users@lists.launchpad.net; DHIS 2 developers; jason.p.pickering@gmail.com
Subject: Re: [Dhis2-users] [Dhis2-devs] Decentralization of user management

It is important to decentralise user management as we promote data use at point of collection as well as increase people's participation from the district level.. this will also enhance the data ownership and encourage use.
PEPELA WANJALA
MINISTRY OF HEALTH HEADQUARTERS
HEALTH INFORMATION SYSTEM
AFYA HOUSE, HIS LG 37
P.O BOX 30016, NAIROBI, KENYA
TEL: +254 (020) 2717077 EXT 45097
CELL: +254 (0) 722375633 or 0202033363
EMAIL: wanjala2p@yahoo.com<mailto:wanjala2p@yahoo.com>
            hmis@health.go.ke<mailto:hmis@health.go.ke>

--- On Sat, 6/11/11, jason.p.pickering@gmail.com <jason.p.pickering@gmail.com> wrote:

I did the following:

        stopped and unloaded DHIS2 in Tomcat

        stopped Tomcat

        downloaded DHIS2-2.3-SNAPSHOT from the site

        did a PgAdmin backup of the Oslo Ghana DB

        used PgAdmin to delete and recreate my local Oslito DB

        did a PgAdmin restore to Oslito

        restarted Tomcat

        deployed 2.3 using Tomcat

        DHIS2 exists under Tomcat\webapps

        started 2.3 using Tomcat -- shows as started in Tomcat manager

        click on dhis2 in Tomcat manager, get a 404, required resource is not available

This is something I’ve done several times successfully in the past. Any ideas why it’s not working now?

Thanks, Roger

Hi Roger,

usually the log is pretty clear as to what went wrong. Could you give that a look, and get back with the relevant log snippet if it's not immediately obvious?

Jo

···

Den 21. juni 2011 kl. 20.44 skrev Friedman, Roger (CDC/CGH/DGHA) (CTR):

I did the following:
            stopped and unloaded DHIS2 in Tomcat
            stopped Tomcat
            downloaded DHIS2-2.3-SNAPSHOT from the site
            did a PgAdmin backup of the Oslo Ghana DB
            used PgAdmin to delete and recreate my local Oslito DB
            did a PgAdmin restore to Oslito
            restarted Tomcat
            deployed 2.3 using Tomcat
            DHIS2 exists under Tomcat\webapps
            started 2.3 using Tomcat -- shows as started in Tomcat manager
            click on dhis2 in Tomcat manager, get a 404, required resource is not available

This is something I've done several times successfully in the past. Any ideas why it's not working now?

Thanks, Roger
_______________________________________________
Mailing list: DHIS 2 Users in Launchpad
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : DHIS 2 Users in Launchpad
More help : ListHelp - Launchpad Help

Sorry, didn’t say that I had looked at the logs.

        Manager shows the stop of /dhis2 but not its start.

        Jakarta looks uneventful

        Catalina looks uneventful

        localhost and stdout have not been modified since the steps below
···

From: Jo Størset [mailto:storset@gmail.com]

Sent: Tuesday, June 21, 2011 2:56 PM

To: Friedman, Roger (CDC/CGH/DGHA) (CTR)

Cc: dhis2-users@lists.launchpad.net; DHIS 2 developers

Subject: Re: [Dhis2-users] [Dhis2-devs] Problems deploying DHIS2 2.3-SNAPSHOT

Hi Roger,

usually the log is pretty clear as to what went wrong. Could you give that a look, and get back with the relevant log snippet if it’s not immediately obvious?

Jo

Den 21. juni 2011 kl. 20.44 skrev Friedman, Roger (CDC/CGH/DGHA) (CTR):

I did the following:

        stopped and unloaded DHIS2 in Tomcat

        stopped Tomcat

        downloaded DHIS2-2.3-SNAPSHOT from the site

        did a PgAdmin backup of the Oslo Ghana DB

        used PgAdmin to delete and recreate my local Oslito DB

        did a PgAdmin restore to Oslito

        restarted Tomcat

        deployed 2.3 using Tomcat

        DHIS2 exists under Tomcat\webapps

        started 2.3 using Tomcat -- shows as started in Tomcat manager

        click on dhis2 in Tomcat manager, get a 404, required resource is not available

This is something I’ve done several times successfully in the past. Any ideas why it’s not working now?

Thanks, Roger


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Strange, it does sound suspiciously like PEBKAC :slight_smile: Just to verify, your war file is about 50 MB in size? And you don't have multiple tomcat instances interfering in some way? And you have of course tried restarting an extra time? Other than that, I'm afraid I'm not the right person to help, as I've never tried the tomcat manager..

Jo

···

Den 21. juni 2011 kl. 21.03 skrev Friedman, Roger (CDC/CGH/DGHA) (CTR):

Sorry, didn't say that I had looked at the logs.
            Manager shows the stop of /dhis2 but not its start.
            Jakarta looks uneventful
            Catalina looks uneventful
            localhost and stdout have not been modified since the steps below

try increasing memory for tomcat, sometimes you get nothing if you dont have enought memory ( not even the javaOutOfMemory error)

cheers

···

On Tue, Jun 21, 2011 at 10:17 PM, Jo Størset storset@gmail.com wrote:

Den 21. juni 2011 kl. 21.03 skrev Friedman, Roger (CDC/CGH/DGHA) (CTR):

Sorry, didn’t say that I had looked at the logs.

        Manager shows the stop of /dhis2 but not its start.
        Jakarta looks uneventful
        Catalina looks uneventful
        localhost and stdout have not been modified since the steps below

Strange, it does sound suspiciously like PEBKAC :slight_smile: Just to verify, your war file is about 50 MB in size? And you don’t have multiple tomcat instances interfering in some way? And you have of course tried restarting an extra time? Other than that, I’m afraid I’m not the right person to help, as I’ve never tried the tomcat manager…

Jo


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


Yusuph Kassim Kulindwa,
University of Dar Es Salaam,
Department of Computer Science,
System Developer/ Research Assistant.

Cell: +255 713 535648

Roger,

If on Windows, try starting up tomcat manually with the startup.bat which gives you a console where you can monitor the log.

This bat file is usually only available when downloading the zip archive of the binary distribution:

http://tomcat.apache.org/download-70.cgi (look for the .zip files)

On linux you can run the startup.sh and use e.g. "tail -f <tomcat_intstall_dir>/logs/catalina.out to get the same.

Make sure the dhis.war is in tomcat/webapps before you start tomcat (and also delete webapps/dhis if there), and then no need to use the tomcat manager.

This should tell you more on what is going on.

Ola

···

Ola Hodne Titlestad (Mr)
HISP
Department of Informatics
University of Oslo

Mobile: +47 48069736
Home address: Vetlandsvn. 95B, 0685 Oslo, Norway. Googlemaps link

On 21 June 2011 23:15, Yusuph Kassim yusuphk@gmail.com wrote:

try increasing memory for tomcat, sometimes you get nothing if you dont have enought memory ( not even the javaOutOfMemory error)

cheers

On Tue, Jun 21, 2011 at 10:17 PM, Jo Størset storset@gmail.com wrote:

Den 21. juni 2011 kl. 21.03 skrev Friedman, Roger (CDC/CGH/DGHA) (CTR):

Sorry, didn’t say that I had looked at the logs.

        Manager shows the stop of /dhis2 but not its start.
        Jakarta looks uneventful
        Catalina looks uneventful
        localhost and stdout have not been modified since the steps below

Strange, it does sound suspiciously like PEBKAC :slight_smile: Just to verify, your war file is about 50 MB in size? And you don’t have multiple tomcat instances interfering in some way? And you have of course tried restarting an extra time? Other than that, I’m afraid I’m not the right person to help, as I’ve never tried the tomcat manager…

Jo


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


Yusuph Kassim Kulindwa,
University of Dar Es Salaam,
Department of Computer Science,
System Developer/ Research Assistant.

Cell: +255 713 535648


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Thanks to all who have helped. I was able to look at the stdout log and it showed that DHIS2 had started up OK (step 10 of 10), but I looked back earlier in the day and found some messages complaining about data. I ran data integrity checks on the Oslo DB and it appears that the DB has a lot of inconsistencies arising from a metadata import which I did from my local copy to Oslo. I will try to clear these up, redo the backup/restore step and see what happens. If it will help anyone, I can send a previous Oslo backup file plus the metadata import file.

···

From: olatitle@gmail.com [mailto:olatitle@gmail.com] On Behalf Of Ola Hodne Titlestad

Sent: Tuesday, June 21, 2011 4:47 PM

To: Yusuph Kassim

Cc: Jo Størset; dhis2-users@lists.launchpad.net; Friedman, Roger (CDC/CGH/DGHA) (CTR); DHIS 2 developers

Subject: Re: [Dhis2-devs] [Dhis2-users] Problems deploying DHIS2 2.3-SNAPSHOT

Roger,

If on Windows, try starting up tomcat manually with the startup.bat which gives you a console where you can monitor the log.

This bat file is usually only available when downloading the zip archive of the binary distribution:

http://tomcat.apache.org/download-70.cgi (look for the .zip files)

On linux you can run the startup.sh and use e.g. "tail -f <tomcat_intstall_dir>/logs/catalina.out to get the same.

Make sure the dhis.war is in tomcat/webapps before you start tomcat (and also delete webapps/dhis if there), and then no need to use the tomcat manager.

This should tell you more on what is going on.

Ola



Ola Hodne Titlestad (Mr)

HISP

Department of Informatics

University of Oslo

Mobile: +47 48069736

Home address: Vetlandsvn. 95B, 0685 Oslo, Norway.
Googlemaps link

On 21 June 2011 23:15, Yusuph Kassim yusuphk@gmail.com wrote:

try increasing memory for tomcat, sometimes you get nothing if you dont have enought memory ( not even the javaOutOfMemory error)

cheers

On Tue, Jun 21, 2011 at 10:17 PM, Jo Størset storset@gmail.com wrote:

Den 21. juni 2011 kl. 21.03 skrev Friedman, Roger (CDC/CGH/DGHA) (CTR):

Sorry, didn’t say that I had looked at the logs.

        Manager shows the stop of /dhis2 but not its start.
        Jakarta looks uneventful
        Catalina looks uneventful
        localhost and stdout have not been modified since the steps below

Strange, it does sound suspiciously like PEBKAC :slight_smile: Just to verify, your war file is about 50 MB in size? And you don’t have multiple tomcat instances interfering in some way? And you have of course tried restarting an extra time? Other than that, I’m afraid I’m not the right person to help, as I’ve never tried the tomcat manager…

Jo


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Yusuph Kassim Kulindwa,

University of Dar Es Salaam,

Department of Computer Science,

System Developer/ Research Assistant.

Cell: +255 713 535648


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp