03.05.2015 Views

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

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.

There is one point worth noting in regard to the difference between the<br />

initialization of a <strong>WebSphere</strong> Application Server V5 custom registry and a<br />

<strong>WebSphere</strong> Application Server V4 custom registry. With Version 4, it was<br />

possible to use other <strong>WebSphere</strong> Application Server components to initialize the<br />

custom registry. For example, a datasource might have been used to connect to<br />

a database-based custom registry or one may have made use of a deployed<br />

EJB. However, in Version 5, both of these examples are not possible because,<br />

unlike in version 4, the security mechanism is initialised before other components<br />

such as containers and therefore these facilities are not available when the<br />

security component is started.<br />

<strong>WebSphere</strong><br />

LTPA<br />

in te rfa ce<br />

LDAP<br />

user<br />

registry<br />

<strong>Security</strong><br />

Server<br />

Authenticate<br />

Calls<br />

Local OS<br />

in te rfa ce<br />

Local OS<br />

user<br />

registry<br />

Pluggable<br />

custom<br />

registry<br />

Custom<br />

registry<br />

Figure 8-1 Authentication registry mechanisms<br />

Developing a custom registry<br />

A sample custom registry implementation is provided with the application server.<br />

The custom registry class is called FileRegistrySample. The source code is also<br />

provided for reference purposes. Refer to the InfoCenter for details on<br />

configuring the application server to use this.<br />

Some points should be taken into consideration when developing a custom<br />

registry.<br />

►<br />

►<br />

The com.ibm.websphere.security.UserRegistry interface must be<br />

implemented. By implementing this interface, the super-interface,<br />

java.rmi.Remote, will also be implemented<br />

The implementation should be compiled by adding the wssec.jar and idl.jar<br />

files to the classpath. These files can be found in the /lib<br />

directory. The following command should be used to compile the registry:<br />

/java/bin/javac -classpath<br />

/lib/wssec.jar:/lib/idl.jar <br />

184 <strong>IBM</strong> <strong>WebSphere</strong> <strong>V5.0</strong> <strong>Security</strong> Handbook

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

Saved successfully!

Ooh no, something went wrong!