mς LγΈEc@sˆdZdkZdklZdklZdklZlZd„Z defd„ƒYZ defd „ƒYZ ed e e eƒdS( sBImplements plaintext password authentication. The password is stored in an SHA hash in the Database. The client sends over the plaintext password, and the SHA hashing is done on the server side. This mechanism offers *no network security at all*; the only security is provided by not storing plaintext passwords on disk. N(s ZEOStorage(sregister_module(sClientsDatabasecCs tid|||fƒiƒS(Ns%s:%s:%s(tshatnewtusernametrealmtpasswordt hexdigest(RRR((t7/data/zmath/zope/lib/python/ZEO/tests/auth_plaintext.pyt session_keyst StorageClasscBstZd„ZRS(NcCs‹y|ii|ƒ}Wntj o dSnXti|ƒi ƒ}||jo&|i i t ||ii|ƒƒn|i||jƒS(Ni(tselftdatabaset get_passwordRtdbpwt LookupErrorRRRRt password_digt connectiont setSessionKeyRRt finish_auth(R RRRR ((Rtauth!s   (t__name__t __module__R(((RRstPlaintextClientcBstZdgZd„ZRS(NRcCs2|ii||ƒot|||ƒSndSdS(N(R tstubRRRRRtNone(R RRR((Rtstart1s(RRt extensionsR(((RR.s t plaintext( t__doc__RtZEO.StorageServert ZEOStoragetZEO.authtregister_modulet ZEO.auth.basetClienttDatabaseRRR(RR"RRR!RRR((Rt?s