10.02.2013 Views

IBM Tivoli Access Manager for e-business: WebSEAL Administration ...

IBM Tivoli Access Manager for e-business: WebSEAL Administration ...

IBM Tivoli Access Manager for e-business: WebSEAL Administration ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Part<br />

2:<br />

-j<br />

junctions<br />

modify<br />

Set-Cookie<br />

Name<br />

attributes<br />

The<br />

–j<br />

option<br />

also<br />

supports<br />

cookies<br />

returned<br />

from<br />

servers<br />

across<br />

multiple<br />

junctions.<br />

Browser<br />

rule:<br />

Browsers<br />

always<br />

replace<br />

any<br />

stored<br />

cookie<br />

with<br />

a<br />

newly<br />

arrived<br />

cookie<br />

containing<br />

the<br />

same<br />

Name<br />

attribute<br />

(Set-Cookie),<br />

unless<br />

the<br />

Path<br />

or<br />

Domain<br />

attributes,<br />

or<br />

both<br />

are<br />

unique.<br />

Problem:<br />

The<br />

previous<br />

section<br />

describes<br />

how<br />

the<br />

–j<br />

junction<br />

option<br />

modifies<br />

the<br />

Path<br />

attribute<br />

of<br />

a<br />

Set-Cookie<br />

header<br />

to<br />

allow<br />

the<br />

browser<br />

to<br />

return<br />

cookies<br />

in<br />

an<br />

environment<br />

where<br />

<strong>WebSEAL</strong><br />

is<br />

applying<br />

different<br />

filtering<br />

rules<br />

<strong>for</strong><br />

visible<br />

and<br />

embedded<br />

URLs<br />

contained<br />

in<br />

the<br />

response<br />

page.<br />

In<br />

a<br />

scenario<br />

where<br />

multiple<br />

back-end<br />

servers<br />

are<br />

connected<br />

to<br />

<strong>WebSEAL</strong><br />

across<br />

different<br />

junctions<br />

(such<br />

as<br />

in<br />

a<br />

WebSphere<br />

environment),<br />

it<br />

is<br />

possible<br />

<strong>for</strong><br />

each<br />

server<br />

to<br />

send<br />

cookies<br />

(Set-Cookie)<br />

with<br />

the<br />

same<br />

Name<br />

attribute.<br />

If<br />

the<br />

junctions<br />

use<br />

the<br />

–j<br />

option,<br />

the<br />

Path<br />

attributes<br />

<strong>for</strong><br />

each<br />

cookie<br />

become<br />

identical<br />

(Path=/).<br />

Because<br />

the<br />

same<br />

<strong>WebSEAL</strong><br />

server<br />

is<br />

the<br />

point<br />

of<br />

contact<br />

<strong>for</strong><br />

the<br />

browser,<br />

the<br />

Domain<br />

attribute<br />

likewise<br />

becomes<br />

identical.<br />

Although<br />

these<br />

identical<br />

cookies<br />

arrive<br />

from<br />

unique<br />

back-end<br />

applications,<br />

the<br />

browser<br />

overwrites<br />

the<br />

identically<br />

named<br />

cookies.<br />

Solution:<br />

The<br />

–j<br />

junction<br />

option<br />

provides<br />

an<br />

additional<br />

feature<br />

that<br />

uniquely<br />

renames<br />

any<br />

cookie<br />

returned<br />

with<br />

a<br />

response<br />

from<br />

a<br />

back-end<br />

application<br />

server.<br />

The<br />

Name<br />

attribute<br />

of<br />

a<br />

Set-cookie<br />

header<br />

is<br />

prepended<br />

with<br />

a<br />

special<br />

string.<br />

The<br />

string<br />

contains<br />

the<br />

name<br />

of<br />

the<br />

specific<br />

junction<br />

responsible<br />

<strong>for</strong><br />

delivering<br />

the<br />

response<br />

(with<br />

cookie).<br />

AMWEBJCT_jct-name_<br />

For<br />

example,<br />

if<br />

a<br />

cookie<br />

with<br />

the<br />

Name<br />

″JSESSIONID″<br />

arrives<br />

across<br />

a<br />

junction<br />

named<br />

/jctA,<br />

the<br />

cookie<br />

Name<br />

is<br />

changed<br />

to<br />

:<br />

AMWEBJCT_jctA_JSESSIONID<br />

Refer<br />

also<br />

to<br />

“Preserving<br />

cookie<br />

names”<br />

on<br />

page<br />

296.<br />

Preserving<br />

cookie<br />

names<br />

By<br />

default,<br />

<strong>WebSEAL</strong><br />

modifies<br />

the<br />

names<br />

of<br />

cookies<br />

(returned<br />

in<br />

responses<br />

from<br />

back-end<br />

applications)<br />

across<br />

junctions<br />

created<br />

with<br />

the<br />

–j<br />

option<br />

or<br />

listed<br />

in<br />

the<br />

junction<br />

mapping<br />

table.<br />

This<br />

functionality<br />

is<br />

described<br />

in<br />

the<br />

preceding<br />

section.<br />

In<br />

the<br />

scenario<br />

just<br />

described,<br />

<strong>WebSEAL</strong><br />

creates<br />

unique<br />

cookie<br />

names<br />

to<br />

prevent<br />

possible<br />

naming<br />

conflicts<br />

with<br />

cookies<br />

returned<br />

across<br />

other<br />

–j<br />

junctions.<br />

However,<br />

if<br />

front-end<br />

browsers<br />

and<br />

applications<br />

depend<br />

on<br />

the<br />

specific<br />

cookie<br />

name<br />

generated<br />

by<br />

the<br />

application,<br />

you<br />

can<br />

disable<br />

this<br />

default<br />

cookie<br />

renaming<br />

functionality<br />

<strong>for</strong><br />

specific<br />

cookies.<br />

The<br />

name<br />

parameter<br />

in<br />

the<br />

[preserve-cookie-<br />

names]<br />

stanza<br />

of<br />

the<br />

<strong>WebSEAL</strong><br />

configuration<br />

file<br />

allows<br />

you<br />

to<br />

list<br />

the<br />

specific<br />

cookie<br />

names<br />

that<br />

are<br />

not<br />

to<br />

be<br />

renamed<br />

by<br />

<strong>WebSEAL</strong>:<br />

[preserve-cookie-names]<br />

name<br />

=<br />

cookie-name1<br />

name<br />

=<br />

cookie-name2<br />

296<br />

<strong>IBM</strong><br />

<strong>Tivoli</strong><br />

<strong>Access</strong><br />

<strong>Manager</strong><br />

<strong>for</strong><br />

e-<strong>business</strong>:<br />

<strong>WebSEAL</strong><br />

<strong>Administration</strong><br />

Guide

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!