You have to hard-code the place of the file containing the passwords into the code, but hey, then you can use you linux users&paswords in zope!
This will add a crypto source, so we have to integrate it like this:
diff exUserFolder/CryptoSources/__init__.py
4a5
+ import pass_pwd
The attached file is the new crypto source which understands traditional linux crypt and md5 style password hashes. Save it as exUserFolder/CryptoSources/pass_pwd.py
configuration area in the file:
PASSWORDFILES = ['/opt/zope-instances/foo/exUsers/etcUsers']
DEBUG = 0
DEBUG_LOGFILE = '/tmp/pwdtest.log'
cp /etc/shadow $INSTANCE_HOME/exUsers/etcUsers
(re)install the Product with the changes
add an exUserFolder to a subfolder somewhere which does not already have an acl_users folder
Answer to the dialog:
"Authentication Source": "File Based Authentication Source"
all other Sources: "Null * Source"
"Default Password Hashing Method": "Linux style: crypt or md5"
click NEXT -> Password File: etcUsers , Default Role: etcUser
click NEXT -> click "Add" a few times till finished
tested with:
gentoo Base System version 1.12.6
Zope 2.9.4
Logged In: YES
user_id=565890
Originator: YES
File Added: pass_pwd.py