[Zope] SimpleUserFolder and sha-crypted passwd
Bjørge Solli
Bjørge Solli
Wed, 18 Dec 2002 15:57:39 +0100 (CET)
Hi
Update:
I now know how to get the passwords to be encrypted, but I still have
problems. I try to make a getUserDetails file like this:
return {
'name' : 'bob',
'password' : 'test',
'roles' : 'student'
}
(I have tried with and without name as a parameter)
It will not authenticate me!
I do not wish to implement editUser,addUser and deleteUser so they look
like this:
print('nothing')
return printed
What am I missing?
(I use Zope 2.6 and Python 2.1.3)
I tried the testscripts in tests:
test_User.py I needed to import ZODB, but after that it worked
test_Unconfigured.py worked
test_PythonScriptUsage.py did not work since I have my scripts inside a
subfolder in Zope
test_AcquireUsage.py worked but I don't understand what it does
Thankyou!
Bjorge
On Mon, 16 Dec 2002, Bjørge Solli wrote:
> Hi
>
> I want to put my old loginmanager to rest and put something simple in.
> SimpleUserFolder sounds nice, but it seems to do the password matching
> itself, and since I have sha-crypted passwords, I need to match the
> passwords in encrypted format. Any ideas? If none, can u please tell me to
> *not* use SimpleUserFolder(perhaps you have an alternative as well?).
>
> For the record; I keep my users in a database.
>
> Thankyou!
>
> regards
> Bjorge
>
--
http://www.ii.uib.no/~bjorge/smile/Smiles
--
Bjørge Solli - Universitas Bergensis, Norway
mailto:Bjorge@Kvarteret.no icq#29210281 MSN:bobelloco@hotmail.com
Møllendalsv.19, 5009 Bergen, Norway tel:+47 55202853/91614343