Archive for the ‘ Java ’ Category

How to Change the WAS on AIX TimeZone Setting

Actually, the basic way to change the WAS on AIX TimeZone setting is to change the AIX server date/time & timezone using SMITTY tool. But if you cannot, then follow the rest of this article to get it done.

Continue reading

IBM WCM Expiry and Process Now Behavior

Some of you may have encountered some problem when trying to identify the different purposes of the IBM WCM Expiry and Process Now buttons. Just click on the ‘read more’ link of this article and you will find the clue.

Continue reading

Internet Explorer (IE) 7 and 8 Back Button Behavior for Post Method

Some of  you may have experienced the strange behavior for some of the Websphere Portal, especially in the WCM related pages, that when you click the Browser (IE) BACK button, it throws “Webpage has expired” message

Continue reading

EPHOX – New Way for IBM WCM Rich Text Editor

Hi Folks,

It’s been a very long time not to post anything into my blog. It’s been very busy lately. Well, now let me start off by posting new technology on how to use EPHOX and customize it to replace the IBM WCM Rich Text Editor (RTE)

Continue reading

WebSphere Portal 6.0 Multi /GET/Command.Login issue

Hi Folks,

After months of troubleshooting in our client side, we finallymanaged to solve the Multi /GET/Command.Login issue in our WebSphere Portal environment.

Continue reading

Implementing AJAX in IBM WCM Portlet Part 2

Hi Folks,

Last time I posted article on how to implement AJAX in the IBM WCM Portlet. The missing from that writing is the content caching portion. In this article, I will finish up that portion for the completeness of the entire solution.

Continue reading

Domino Directory Assistance Group Cache Issue

Hi Folks, Just in case you are facing the issue in Domino Directory Assistance Group lookup, when you cannot search other groups, this information might be useful.

Continue reading

Extended Key Usage Issue – Applet JAR Signer

Hi Folks,

Last time I found a problem when trying to access my applet from a web site. The problem is that “The publisher cannot be verified by a trusted source. Code will be treated as unsigned”, with the Exception “sun.security.validator.ValidatorException: Extended key usage does not permit use for code signing”

Continue reading

Windows TCP Local Ports

I just found out that by default the Windows 2003 Server sets the Maximum TCP Ports number to 5000. This is a problem if we have an application which needs to connect to remote system using a particular port number.

See the following URL:

http://msdn.microsoft.com/en-us/library/ms819739.aspx

The number of user-accessible ephemeral ports that can be used as sources for outbound connections can be configured using the MaxUserPorts registry value, also found under the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters key. By default, when an application requests any socket from the system to use for an outbound call, a port numbered between 1024 and 5000 is supplied. MaxUserPorts can be used to set the value of the uppermost port that the administrator chooses to allow for outbound connections.

So, bear in mind to increase the MaxUserPorts parameter to allow locally open up to a certain number ,ie. 65000.

How to Interact with Active Directory (LDAP) from Java

This week I was doing a simple script to add groups into the Active Directory. Initially I thought it would be an easy job since I thought Active Directory is just a normal LDAP Server. However, when I tried to add new group into AD using the same technique as adding new entry into the LDAP on a specified Base Context, the AD throws an exception saying that the operation is not allowed.

Well, after hours of struggle and spinning my brain left and right, I finally found a solution which I would like to share with you.

The basic principle is that AD does not allow modifying built-in attributes, but creating new group requires to modify some attributes, especially objectGUID and objectSid. My technique was to add the group by executing the ‘dsadd’ command line through the Java Runtime. In order to know the process result, I obtain the process exit result. If the result is ‘0’ which means successful, then I continue the process by adding members. However this members update was successfully done by changing the member multiple-value attribute using normal LDAP Java API.

So I believe the same technique can be also used to add Users, or other AD objects.