Create Free Blog | Random Blog »   Report Abuse | Login   

 

WebSphere Gloabl Security - part2

WebSphere Application Server No Comments »

Note: I assume that you’ve already set up your user registry and enabled the administrative security.

If you haven’t finished those steps, refer to previous post.

Having set the administrative security and adding an user registry, now we need to find a way in which we can map the users to different roles.

For example, we do not want everyone to be an administrator. For some people only deployment features in the admin console are enough. some users may need to only monitor the state of the WebSphere through the console.

By default, WebSphere provides few roles, those are listed below

Monitor The monitor role can do the following:
• View the WebSphere Application Server configuration
• View the current state of the Application Server
Configurator A configurator role can do the following:
• Create a resource
• Map an application server
• Install and uninstall an application
• Deploy an application
• Assign users and groups-to-role mapping for applications
• Set up Java 2 security permissions for applications
Monitor monitor privileges and can stop and start the server
and monitor the server status in the administrative console.
Administrator An individual or group which can be assigned this role will have the
operator and configurator privileges, plus additional privileges that
are granted for administration.
Iscadmins Available to administrative console users. Users who are granted this
role have administrator privileges for managing users and groups in
the federated repositories.
Deployer Assigned users will have  the ability to completely deploy
an application and configure application runtime settings.
Admin Security Manager By using the Admin Security Manager role, you can assign users and
groups to the administrative user roles and administrative group roles.

Only for WebSphere v7

Auditor This role allows users to modify the configuration settings for security auditing and the role includes the monitor role.

Read the rest of this entry »

Share SocialTwist Tell-a-Friend 

WebSphere Global Security - part1

WebSphere Application Server No Comments »

Once you enable the global security, it applies to security policy for all administrative functions and is used as default security policy for user applications. When you select the Enable administrative security option, the Enable application security and Use Java 2 security to restrict application access to local resources options are selected by default. However, you can clear the Enable application security and Use Java 2 security to restrict application access to local resources options so that they function independently from the Enable administrative security option. So Global security is combination of Administrative security and j2ee security.

from WebSphere v6.1 onwards we have option to enable security while installing/creating the profile. Enabling from these options will use the custom file based repository for storing user names and passwords for authentication.
Before you can enable security for WebSphere Application Server, you must configure a user registry.

For WebSphere v6.1 Click Security > Secure administration, applications, and infrastructure.
for WebSphere v7.0 users have this under security->global security.

image

Select the Enable administrative security option

Notes:     1. Clear the Enable application security option if you do not want to require WebSphere Application Server to authenticate application users.
2. Clear the Use Java 2 security to restrict application access to local resources option if you do not want to enable Java 2 Security permission checking.

Now select the User account repository

Here we have 4 options:

    • Federated repositories
      The federated repositories functionality enables you to use multiple registries with WebSphere Application Server. These registries, which can be file-based registries, LDAP registries, or a sub-tree of an LDAP registry, are defined and theoretically combined under a single repository.
    • Local operating system
      The implementation is a SAF compliant registry such as the Resource Access Control Facility, which is shared in an MVS sysplex.
    • Standalone LDAP registry
      The standalone LDAP registry settings are used when users and groups reside in an external LDAP directory. When security is enabled and any of these properties are changed, go to the Secure administration, applications, and infrastructure panel and click OK or Apply to validate the changes.
    • Standalone custom registry
      The standalone custom registry feature supports any user registry that is not implemented by WebSphere Application Server. You can use any user registry that is used in the product environment by implementing the UserRegistry interface.

Configure the selected repository and click “set as current”. and then click apply.

Once you’ve applied the new configuration, you need restart all the process (dmgr/node/server) for the administrative security to be in action.

Configuring standalone LDAP for user account repository

I assume that you’ve already set up your LDAP repository.

go to Security->Secure administration, applications, and infrastructure->User account repository->available realm definitions
here select standalone LDAPregistry and click configure

Now, you’ll be taken a new panel, where you configure LDAP for webSphere

First give the primary administrative user name.
This is the primary user WebSphere will use for the server identity. This user must have administrative privileges on LDAP.

image

Select the server user identity - automatically generate server identity.

Select the type of LDAP server you are using

and you need enter the following details
Host - where you ldap is running (give fully qualified domain name)
Port - port where your ldap is running
Base distinguished Name (DN)
Bind distinguished name (DN)
Bind password

Once gave all the above details, click apply

navigate back to the global security page and click ’set as current’

If you select custom LDAP option in the above step, you may get an error message saying ‘Primary administrative user ID does not exist in the registry error message’. This is because, default LDAP configuration for Custom in WebSphere is set to look for the uid attribute for a common name. You’ll need to set these as per your LDAP.
for example, in OpenLDAP we create a new user using ‘cn’ attribute.

To set this custom field, goto Additional properties-> Advanced Lightweight Directory Access Protocol (LDAP) user registry settings. A default set of predefined filters exist, which are provided for each LDAP server that the WebSphere supports. You can modify these filters to fit your LDAP configuration.

image

Once your changes are done click apply and save. and then save the changes to master configuration repository. You now have configured WebSphere to use an LDAP registry.

Now that we’ve enabled the administrative security, the next step is to configure the Administrative roles and map the users.

Administrative roles and mapping users will be discussed in the next post.

Share SocialTwist Tell-a-Friend 

Upgrade yourself to WebSphere Application Server v7 (Videos)

Technical, WebSphere Application Server No Comments »

Part 1/3

Part2/3

Part3/3

WebSphere Application Server V7 Product demonstrations

Technical, WebSphere Application Server No Comments »

The IBM WebSphere Application Server V7 product animations are designed to provide some insight into the product without requiring a significant investment to learn. These animations are overviews and may be updated as the products change.

Follow the below link and  fill the form to download/view the demos

https://www14.software.ibm.com/webapp/iwm/web/signup.do?lang=en_US&source=sw-app&S_PKG=wasdemo&S_TACT=109DA48W?&S_CMP=WBSP

WebSphere SOA products

Technical No Comments »

Performance monitoring of IBM http server (or) Apache

Apache, Technical No Comments »
How do I display Apache server status such as current server activity and performance?mod_status Apache module
There is mod_status built into Apache web server to get server status from a web browser. With this module you can easily find out how well your server is preforming.What info can i get from the modlue?

Using mod_status you get to see:

* The number of children serving requests
* The number of idle children
* The status of each child, the number of requests that child has performed and the total number of bytes served by child
* A total number of accesses and byte count served
* The time the server was started/restarted and the time it has been running for
* Averages giving the number of requests per second, the number of bytes served per second and the average number of bytes per request
* The current percentage CPU used by each child and in total by Apache
* The current hosts and requests being processed.

Read the rest of this entry »

mod_deflate - save web server traffic

Apache, Technical No Comments »
  • The mod_deflate module provides the DEFLATE output filter that allows output from your server to be compressed before being sent to the client over the network.
  • mod_deflate allows Apache2 to compress files and deliver them to clients
  • With mod_deflate, you can compress HTML, text or XML files to approx. 20 - 30% of their original sizes, thus saving you server traffic.
  • Compressing files causes a slightly higher load on the server

How to use it?



1. Enable mod_deflate module

When we install apache2, mod_deflate should also already be installed on system
LoadModule deflate_module modules/mod_deflate.so

2. Configure mod_deflate

We have the option to enable it for the entire apache or just for the specified virtualhots.
Also we can specify which type of files to be deflated.

If you want only a few file types to be deflated
AddOutputFilterByType DEFLATE text/html text/plain text/xml

If you want to compress all file types and exclude just a few like already compressed zip, gzip etc
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary

Whatever you choose from the step2, add the following below that

BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

3. Adding log file for viewing results

Now add the following to add the log file to view how much % a particular request was deflated.

DeflateFilterNote Input input_info
DeflateFilterNote Output output_info
DeflateFilterNote Ratio ratio_info
LogFormat ‘”%r” %{output_info}n/%{input_info}n (%{ratio_info}n%%)’ deflate
CustomLog /app/ihs/logs/mod_deflate.log deflate

4. Results

“GET /images/homepage_bg.jpg HTTP/1.1″ 49182/114603 (42%)

This means
homepage_bg.jpg was the images which was deflated
Its actual size is 114603 and size after delated is 49182 and % od deflation is 42.

Share SocialTwist Tell-a-Friend 
Theme & Icons by N.Design Studio.
All rights reserved. http://activexpert.blog.co.in | Powered by Blog.co.in
Entries RSS Comments RSS Log in