[Zope-PTK] Membership problems
Itamar Shtull-Trauring
itamar@maxnm.com
Tue, 10 Oct 2000 13:14:54 +0200
This is a multi-part message in MIME format.
--------------218440B3C3D8E46273C7001A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Itamar Shtull-Trauring wrote:
> In fact, it never recoginzes the username/password pair. Any idea what may
> be causing this problem, or how I can debug it?
OK, I discovered what the problem is. Compare the following lines (u is a
user object):
>>> u.propertysheets.SystemProperties.password
'{CRYPT}R0nzSkU8huehY'
>>> u.propertysheets.SystemProperties.getProperty('password')
'{CRYPT}goOLXm9EWBlM2'
u.propertysheets.SystemProperties.password always returns the same string,
no matter what user or password the user has. getProperty returns the
correct password. Attached is a patch for the bug.
--------------218440B3C3D8E46273C7001A
Content-Type: application/octet-stream;
name="Membership.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="Membership.patch"
LS0tIFBlcnNpc3RlbnRVc2VyU291cmNlLnB5Lm9yaWcJVHVlIE9jdCAxMCAxMjozNDoxMSAy
MDAwCisrKyBQZXJzaXN0ZW50VXNlclNvdXJjZS5weQlUdWUgT2N0IDEwIDEyOjM0OjMzIDIw
MDAKQEAgLTU5LDcgKzU5LDcgQEAKICAgICAgICAgICAgIGZpbmFsbHk6CiAgICAgICAgICAg
ICAgICAgc2V0dWlkKHNlbGYuUkVRVUVTVCwgb2xkX2F1KQogICAgICAgICBlbHNlOgotICAg
ICAgICAgICAgZW5jcHcgPSAgdXNlci5wcm9wZXJ0eXNoZWV0cy5TeXN0ZW1Qcm9wZXJ0aWVz
LnBhc3N3b3JkCisgICAgICAgICAgICBlbmNwdyA9ICB1c2VyLnByb3BlcnR5c2hlZXRzLlN5
c3RlbVByb3BlcnRpZXMuZ2V0UHJvcGVydHkoJ3Bhc3N3b3JkJykKICAgICAgICAgICAgIG9r
ID0gc2VsZi5jb21wYXJlUGFzc3dvcmQocGFzc3dvcmQsIGVuY3B3KQogICAgICAgICAKICAg
ICAgICAgaWYgb2s6Cg==
--------------218440B3C3D8E46273C7001A--