@@ -2,9 +2,11 @@ Migrating to newer versions of Roundup
22======================================
33
44
5- 0.2.x -> 0.3.x
6- --------------
5+ Migrating from 0.2.x to 0.3.x
6+ =============================
77
8+ Cookie Authentication changes
9+ -----------------------------
8100.3.0 introduces cookie authentication - you will need to copy the
911interfaces.py file from the roundup source to your instance home to enable
1012authentication. If you used the classic schema, the interfaces file is in:
@@ -15,33 +17,56 @@ If you used the extended schema, the file is in:
1517
1618 <roundup source>/roundup/templates/extended/interfaces.py
1719
20+ If you have modified your interfaces.Client class, you will need to take
21+ note of the login/logout functionality provided in roundup.cgi_client.Client
22+ (classic schema) or roundup.cgi_client.ExtendedClient (extended schema) and
23+ modify your instance code apropriately.
1824
19- This release also introduces encryption of passwords in the database. To
20- use the encrypted passwords in your existing database, you will need to
21- modify your schema.
25+
26+ Password encoding
27+ -----------------
28+ This release also introduces encoding of passwords in the database. If you
29+ have not edited the dbinit.py file in your instance home directory, you may
30+ simply copy the new dbinit.py file from the core code. If you used the
31+ classic schema, the interfaces file is in:
32+
33+ <roundup source>/roundup/templates/classic/dbinit.py
34+
35+ If you used the extended schema, the file is in:
36+
37+ <roundup source>/roundup/templates/extended/dbinit.py
38+
39+
40+ If you have modified your dbinit.py file, you may use encoded passwords:
2241
2342 1. Edit the dbinit.py file in your instance home directory
24- 1a. Around line 47 ( the first code line of the open() function) :
43+ 1a. At the first code line of the open() function:
2544
2645 from roundup.hyperdb import String, Date, Link, Multilink
2746
2847 alter to include Password, as so:
2948
3049 from roundup.hyperdb import String, Password, Date, Link, Multilink
3150
32- 1b. Around line 66 (after the 'user = Class(db, "user, ' line):
51+ 1b. Where the password property is defined (around line 66 ):
3352
53+ user = Class(db, "user",
3454 username=String(), password=String(),
55+ address=String(), realname=String(),
56+ phone=String(), organisation=String())
57+ user.setkey("username")
3558
36- alter so it reads :
59+ alter the "password=String()" to "password=Password()" :
3760
61+ user = Class(db, "user",
3862 username=String(), password=Password(),
63+ address=String(), realname=String(),
64+ phone=String(), organisation=String())
65+ user.setkey("username")
3966
4067 2. Any existing passwords in the database will remain cleartext until they
4168 are edited. It is recommended that at a minimum the admin password be
4269 changed immediately:
4370
4471 roundup-admin -i <instance home> set user1 password=<new password>
4572
46-
47-
0 commit comments