Re: [Dhis2-users] Creation of bulk user.

2014-05-09 Thread Kenneth Børtveit
] Creation of bulk user. Hi Lars Thanks. Yes restarting tomcat can generate the blank UID. UID is a indexed field so I cannot create more than one user in one go. Is there any solution? Regards Hannan On Wed, May 7, 2014 at 2:38 PM, Lars Helge Øverland larshe...@gmail.com wrote

Re: [Dhis2-users] Creation of bulk user.

2014-05-08 Thread Hannan Khan
Hi Lars Thanks. Yes restarting tomcat can generate the blank UID. UID is a indexed field so I cannot create more than one user in one go. Is there any solution? Regards Hannan On Wed, May 7, 2014 at 2:38 PM, Lars Helge Øverland larshe...@gmail.comwrote: Hi, it is correct that missing

Re: [Dhis2-users] Creation of bulk user.

2014-05-08 Thread Wilson,Randy
Øverland Cc: dhis2-users@lists.launchpad.net; DHIS 2 developers Subject: Re: [Dhis2-users] Creation of bulk user. Hi Lars Thanks. Yes restarting tomcat can generate the blank UID. UID is a indexed field so I cannot create more than one user in one go. Is there any solution? Regards Hannan

Re: [Dhis2-users] Creation of bulk user.

2014-05-08 Thread Hannan Khan
Helge Øverland *Cc:* dhis2-users@lists.launchpad.net; DHIS 2 developers *Subject:* Re: [Dhis2-users] Creation of bulk user. Hi Lars Thanks. Yes restarting tomcat can generate the blank UID. UID is a indexed field so I cannot create more than one user in one go. Is there any solution

[Dhis2-users] Creation of bulk user.

2014-05-07 Thread Hannan Khan
Dear Experts We are in a need of creating bulk users (8000) and org unit assignment. I created script for testing but facing problem populating password and UUID. Please advice how can I do that? I try to update password using crypt function and gen_salt function but the length of the password

Re: [Dhis2-users] Creation of bulk user.

2014-05-07 Thread Jason Pickering
Hi Hannan, This has been discussed (again) recently on this list. http://dhis-developers-list.1563109.n2.nabble.com/Password-Generation-td7590749.html#a7590750 http://dhis-developers-list.1563109.n2.nabble.com/USERS-Password-td7591703.html#a7591704 There are a few more as well in the archives

Re: [Dhis2-users] Creation of bulk user.

2014-05-07 Thread Brajesh Murari
Dear Mr. Khan length of the password should not be an issue in creating bulk users in DHIS2,if and only if it does't violet any validation checks, like 1. Password should start with Capital letter. 2. Password should contains at least one neumaric character. 3. Password length should not be

Re: [Dhis2-users] Creation of bulk user.

2014-05-07 Thread Hannan Khan
Thanks Jason. Password issues are there and we are trying with that but what about the UUID? Regards Hannan On Wed, May 7, 2014 at 12:14 PM, Jason Pickering jason.p.picker...@gmail.com wrote: Hi Hannan, This has been discussed (again) recently on this list.

Re: [Dhis2-users] Creation of bulk user.

2014-05-07 Thread Jason Pickering
The UUID will be generated automatically, so no need to worry about it. Regards, Jason On Wed, May 7, 2014 at 9:29 AM, Hannan Khan hann...@gmail.com wrote: Thanks Jason. Password issues are there and we are trying with that but what about the UUID? Regards Hannan On Wed, May 7, 2014

Re: [Dhis2-users] Creation of bulk user.

2014-05-07 Thread Jason Pickering
If it is blank then the database will regenerate it automatically when you restart (I think. This is what happens with other objects which have a uuid). That is the easiest way. If you are preparing SQL for injection of the users and you want to pregenerate them, you can use which ever tool you

Re: [Dhis2-users] Creation of bulk user.

2014-05-07 Thread Knut Staring
The easiest is to restart DHIS2 (Tomcat) On Wed, May 7, 2014 at 10:14 AM, Jason Pickering jason.p.picker...@gmail.com wrote: If it is blank then the database will regenerate it automatically when you restart (I think. This is what happens with other objects which have a uuid). That is the

Re: [Dhis2-users] Creation of bulk user.

2014-05-07 Thread Hannan Khan
No. It seems that uuid is not automatically generated. Please suggest. Regards Hannan On May 7, 2014 1:34 PM, Jason Pickering jason.p.picker...@gmail.com wrote: The UUID will be generated automatically, so no need to worry about it. Regards, Jason On Wed, May 7, 2014 at 9:29 AM, Hannan

Re: [Dhis2-users] Creation of bulk user.

2014-05-07 Thread Lars Helge Øverland
Hi, it is correct that missing UIDs will be generated on system startup. I think what is being referred to here is dhis UID and not an UUID. There are ways to generate dhis UIDs through the web api but it's just much simpler to restart tomcat. regards, Lars On Wed, May 7, 2014 at 10:19 AM,