22Customising 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
32433243Using 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+
32463252We have a centrally-managed password changing system for our users. This
32473253results in a UN*X passwd-style file that we use for verification of
32483254users. Entries in the file consist of ``name:password`` where the
@@ -3259,6 +3265,7 @@ need to override the standard ``verifyPassword`` method defined in
32593265following is added as ``externalpassword.py`` in the tracker ``extensions``
32603266directory::
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
33403347Next 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
33463353Handle special users (those to ignore in the file, and those who don't
0 commit comments