[pubcookie-dev] can't increase username lenght in pubcookie code :-(

Nico Tranquilli nico at cineca.it
Wed Dec 5 08:39:50 PST 2007


Hi,

I've been trying for two days to increase the username length in
pubcookie (max size of 42 characters is way too short for our needs)
with no luck.

The only code I found about user length is in pubcookie.h

#define PBC_USER_LEN 42
and maybe
#define PBC_TOT_COOKIE_DATA 228

If I change those values to
#define PBC_USER_LEN 72
#define PBC_TOT_COOKIE_DATA 260

It seems that the application servers get an incomplete or bad G or L
cookie and think that it is expired and needs to reauthenticate. The
username/password is checked correctly, but after authentication the
browser jumps to the application server and it redirects it back to
the login server due to expired auth session.

Trying to debug, I found that create_ts and expire_ts timestamp
content is ok when passed to the create_cookie code in index.cgi.c
but gets replaced (by random negative values) when the cookie is
later decoded.

Please help, maybe there's some hidden dependency on PBC_USER_LEN I
should take care of.

Best Regards
Nico
--
Nico Tranquilli
Dipartimento Sistemi & Tecnologie
CINECA - Interuniversity Computing Centre
tranquilli at cineca.it +39-0516171519




More information about the pubcookie-dev mailing list