Skip to content

Commit 014812e

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent fffcd5e commit 014812e

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
@@ -13,6 +13,8 @@ Fixed:
1313
- change AUTOCOMMIT=OFF to AUTOCOMMIT=0 for MySQL (sf bug 1143707)
1414
- compile message objects in 'setup.py build'
1515
- use backend datatype for journal timestamps in RDBMSes
16+
- fixes to the "Using an external password validation source"
17+
customisation example (sf bugs 1153640 and 1155108)
1618

1719

1820
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.161.2.8 $
5+
:Version: $Revision: 1.161.2.9 $
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
@@ -3243,6 +3243,12 @@ Using External User Databases
32433243
Using an external password validation source
32443244
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32453245

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

3268+
import os, crypt
32623269
from roundup.cgi.actions import LoginAction
32633270

32643271
class ExternalPasswordLoginAction(LoginAction):
@@ -3339,8 +3346,8 @@ tracker we're to work on::
33393346

33403347
Next we read in the *passwd* file from the tracker home::
33413348

3342-
# read in the users
3343-
file = os.path.join(tracker_home, 'users.passwd')
3349+
# read in the users from the "passwd.txt" file
3350+
file = os.path.join(tracker_home, 'passwd.txt')
33443351
users = [x.strip().split(':') for x in open(file).readlines()]
33453352

33463353
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)