22Customising 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
32463246Using 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+
32493255We have a centrally-managed password changing system for our users. This
32503256results in a UN*X passwd-style file that we use for verification of
32513257users. Entries in the file consist of ``name:password`` where the
@@ -3262,6 +3268,7 @@ need to override the standard ``verifyPassword`` method defined in
32623268following is added as ``externalpassword.py`` in the tracker ``extensions``
32633269directory::
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
33433350Next 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
33493356Handle special users (those to ignore in the file, and those who don't
0 commit comments