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.

Modifying<br />

absolute<br />

URLs<br />

with<br />

script<br />

filtering<br />

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

requires<br />

additional<br />

configuration<br />

to<br />

handle<br />

the<br />

processing<br />

of<br />

absolute<br />

URLs<br />

embedded<br />

in<br />

scripts.<br />

Web<br />

scripting<br />

languages<br />

include<br />

Javascripts,<br />

VBscripts,<br />

ASP,<br />

JSP,<br />

ActiveX,<br />

and<br />

others.<br />

The<br />

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

configuration<br />

file<br />

contains<br />

a<br />

parameter<br />

that<br />

enables<br />

or<br />

disables<br />

filtering<br />

of<br />

embedded<br />

absolute<br />

URLs:<br />

[script-filtering]<br />

script-filter<br />

=<br />

no<br />

Script-filtering<br />

is<br />

disabled<br />

by<br />

default.<br />

To<br />

enable<br />

script<br />

filtering,<br />

set:<br />

script-filter<br />

=<br />

yes<br />

The<br />

script-filter<br />

mechanism<br />

expects<br />

absolute<br />

URLs<br />

with<br />

a<br />

standard<br />

scheme,<br />

server,<br />

resource<br />

<strong>for</strong>mat:<br />

http://server/resource<br />

The<br />

script-filter<br />

mechanism<br />

replaces<br />

the<br />

scheme<br />

and<br />

server<br />

portions<br />

of<br />

the<br />

link<br />

with<br />

the<br />

correct<br />

junction<br />

in<strong>for</strong>mation<br />

(as<br />

a<br />

relative<br />

pathname):<br />

/junction-name/resource<br />

This<br />

filtering<br />

solution<br />

parses<br />

a<br />

script<br />

embedded<br />

in<br />

HTML<br />

code<br />

and<br />

there<strong>for</strong>e<br />

requires<br />

additional<br />

processing<br />

overhead<br />

that<br />

can<br />

negatively<br />

impact<br />

per<strong>for</strong>mance.<br />

Limit<br />

your<br />

use<br />

of<br />

the<br />

script-filter<br />

parameter<br />

only<br />

to<br />

junctions<br />

that<br />

require<br />

support<br />

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

filtering<br />

of<br />

embedded<br />

absolute<br />

URLs.<br />

The<br />

following<br />

diagram<br />

illustrates<br />

this<br />

absolute<br />

URL<br />

filtering<br />

solution:<br />

You<br />

can<br />

optionally<br />

configure<br />

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

to<br />

rewrite<br />

the<br />

original<br />

absolute<br />

URL<br />

as<br />

an<br />

absolute<br />

URL,<br />

instead<br />

of<br />

a<br />

relative<br />

URL<br />

(default).<br />

To<br />

enable<br />

this<br />

functionality,<br />

set<br />

the<br />

rewrite-absolute-with-absolute<br />

parameter<br />

in<br />

the<br />

[script-filtering]<br />

stanza<br />

of<br />

the<br />

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

configuration<br />

file<br />

to<br />

equal<br />

″yes″:<br />

[script-filtering]<br />

rewrite-absolute-with-absolute<br />

=<br />

yes<br />

With<br />

this<br />

functionality<br />

enabled,<br />

the<br />

example<br />

URL<br />

in<br />

the<br />

diagram<br />

above<br />

would<br />

appear<br />

as<br />

follows:<br />

http://webseal-hostname/jctA/abc.html<br />

Filtering<br />

changes<br />

the<br />

Content-Length<br />

header<br />

Normally,<br />

the<br />

Content-Length<br />

header<br />

in<br />

a<br />

response<br />

from<br />

a<br />

back-end<br />

server<br />

indicates<br />

the<br />

size<br />

of<br />

the<br />

content<br />

being<br />

returned.<br />

When<br />

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

filters<br />

URLs<br />

and<br />

Client<br />

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

Application Server<br />

(serves Javascript)<br />

Script containing<br />

absolute URL:<br />

http://server/abc.html<br />

Client receives:<br />

/jctA/abc.html<br />

Request Request<br />

Client makes request<br />

using link:<br />

/jctA/abc.html<br />

abc.html<br />

successfully located<br />

script-filtering=yes<br />

<strong>WebSEAL</strong> re<strong>for</strong>mats link to:<br />

/jctA/abc.html<br />

1<br />

2<br />

3<br />

/jctA<br />

Figure<br />

13.<br />

Filtering<br />

absolute<br />

URLs<br />

290<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!