head 1.2;
access;
symbols;
locks
root:1.2; strict;
comment @# @;
1.2
date 2006.06.23.07.27.08; author root; state Exp;
branches;
next 1.1;
1.1
date 2006.06.22.10.09.34; author root; state Exp;
branches;
next ;
desc
@do the serial number enforcement
@
1.2
log
@prior to debug code addition
@
text
@DEBUGGING ON
(15:14:34) Marc Pelzer 436: 'R1EuropeAuth_serial' => 'FE23185378E650FCE033C0A87F2E50FC@@20060614131417|5808a6116352a72284b1d5c9632a1b9a'
(15:15:49) glomphaim: can you paste your code line where you make the MD5?
(15:15:56) Marc Pelzer 436: ok, mompls
(15:16:38) Marc Pelzer 436: $this->{response}->{cookies}->{R1EuropeAuth_serial} = $userGuid . '@@' . strftime("%Y%m%d%H%M%S", localtime(time)) . "|" . $this->{md5}->add($userGuid . '@@' . strftime("%Y%m%d%H%M%S", localtime(time)) . $this->{obj}->{int}->{config}->{COOKIE}->{SECRET_PHRASE_realmusic})->hexdigest;
(15:17:39) glomphaim: OK, so you are MD5-ing userguid@@timestamp
(15:18:05) Marc Pelzer 436: yep - and i connect the secret string directly to that
COOKIE data is
COOKIE MD5 is
Calculated inbound MD5 is
MD5 is OK
#serial#
#serial#
NOOL
Timestamp found
There is a timestamp for this user, now figure out if it is cool
is usertime and is dbserial
diff is
DIFF is POSITIVE. GOOD!
echo NEGATIVE NUMBER D00D! invalid timestamp
No entry in timestamp database for user
MD5 on the cookie is bad!
No R1EuropeAuth_serial cookie! Wuzzzupppp?
SET/UPDATE serial-timestamp Setting new cookie value
@@
@@|
Enter new timestamp in database for the luser Updating time-based serial number in DB
@
1.1
log
@Initial revision
@
text
@d1 1
a1 1
a10 4
default secret
a15 1
d30 1
a30 1
MD5 is OK
d51 1
a51 1
DBSERIAL is NOOL
d64 1
a64 3
@