Skip to content

Commit 21c4184

Browse files
author
Richard Jones
committed
fixes to the "Using an external password validation source"...
...customisation example (bugs [SF#153640] and [SF#155108])
1 parent 4349a53 commit 21c4184

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Fixed:
1818
- change AUTOCOMMIT=OFF to AUTOCOMMIT=0 for MySQL (sf bug 1143707)
1919
- compile message objects in 'setup.py build'
2020
- use backend datatype for journal timestamps in RDBMSes
21+
- fixes to the "Using an external password validation source"
22+
customisation example (sf bugs 1153640 and 1155108)
2123

2224

2325
2005-02-17 0.8.1

doc/customizing.txt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Customising Roundup
33
===================
44

5-
:Version: $Revision: 1.172 $
5+
:Version: $Revision: 1.173 $
66

77
.. This document borrows from the ZopeBook section on ZPT. The original is at:
88
http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -3246,6 +3246,12 @@ Using External User Databases
32463246
Using an external password validation source
32473247
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32483248

3249+
.. note:: You will need to either have an "admin" user in your external
3250+
password source *or* have one of your regular users have
3251+
the Admin Role assigned. If you need to assign the Role *after*
3252+
making the changes below, you may use the ``roundup-admin``
3253+
program to edit a user's details.
3254+
32493255
We have a centrally-managed password changing system for our users. This
32503256
results in a UN*X passwd-style file that we use for verification of
32513257
users. Entries in the file consist of ``name:password`` where the
@@ -3262,6 +3268,7 @@ need to override the standard ``verifyPassword`` method defined in
32623268
following is added as ``externalpassword.py`` in the tracker ``extensions``
32633269
directory::
32643270

3271+
import os, crypt
32653272
from roundup.cgi.actions import LoginAction
32663273

32673274
class ExternalPasswordLoginAction(LoginAction):
@@ -3342,8 +3349,8 @@ tracker we're to work on::
33423349

33433350
Next we read in the *passwd* file from the tracker home::
33443351

3345-
# read in the users
3346-
file = os.path.join(tracker_home, 'users.passwd')
3352+
# read in the users from the "passwd.txt" file
3353+
file = os.path.join(tracker_home, 'passwd.txt')
33473354
users = [x.strip().split(':') for x in open(file).readlines()]
33483355

33493356
Handle special users (those to ignore in the file, and those who don't

doc/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ Duncan Booth,
7373
Seb Brezel,
7474
J Alan Brogan,
7575
Titus Brown,
76+
Steve Byan,
7677
Godefroid Chapelle,
7778
Roch'e Compaan,
7879
Wil Cooley,

0 commit comments

Comments
 (0)