Fernando Karnagi’s Weblog

WebSphere Portal 6.0 Multi /GET/Command.Login issue

Posted in Java, Portal by fernandokarnagi on August 29, 2009

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.

(more…)

Implementing AJAX in IBM WCM Portlet Part 2

Posted in Java, Portal by fernandokarnagi on May 17, 2009

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.

(more…)

Domino Directory Assistance Group Cache Issue

Posted in Java, Portal by fernandokarnagi on May 5, 2009

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.

(more…)

Extended Key Usage Issue – Applet JAR Signer

Posted in Java, Portal by fernandokarnagi on January 29, 2009

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”

(more…)

Windows TCP Local Ports

Posted in Java, Portal by fernandokarnagi on July 7, 2008

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

Posted in Java, Portal by fernandokarnagi on March 13, 2008

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.