Archive for March, 2008

Lotus Domino Quickr Crashes

Hi folks,

just found out that Lotus Domino Quickr 8.0.0.0 is not compatible with the QSite SNAPPS template, so it has to be patched to 8.0.0.0 H17.

Expose some additional LDAP Attributes into the WMM WPS6

Hi folks,

I finally found out my I was not able to expose external/additional LDAP Attributes into the IBM WebSohere Portal 6 WMM, which will be then used for my personalization rule (PZN).

The user’s attributes must be exposed to Portal by changing the following WMM files:

  • wmmLDAPServerAttributes.xml
  • wmmAttributes.xml
  • wmmLDAPAttributes.xml

Then I have to check-out the file and then check-in the files again:

  • wpsconfig check-out-wmm-cfg-files-from-dmgr
  • wpsconfig check-in-wmm-cfg-files-to-dmgr

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.

Learn from Mistakes in Coding

Dear All,

I believe when you hear someone saying Learning from Mistakes, you must have been already known this statement. But you might not have heard Learning from Mistakes in Coding.

Just a short story. I started my first coding is when I was 10 years old, and I still remember that it was Basica and some little DBase coding. I made so many mistakes back then. Right now, I am 29 years old, and coding is h0w I do for living. Somehow people just love to use my code writing and I always enjoy coding.

But it is not easy to survive in coding for 19 years. For your information, now I am impressed of using Java Programming Language, which I have been doing in the last 5 years. And again, I am not ashamed of making mistakes, but I learn from those mistakes. Here are a few tips for you:

  • Learning is a matter of making mistakes, so don’t push yourself too hard of not making mistake. The more you think of not making mistake, the less you will get your hands dirty of coding.
  • Always learn from someone more experienced.
  • Never think that you’re an expert and know everything.
  • Join communities.
  • Keep learning and learning, and NEVER stop learning.
  • Remember that when you’re mastering a technology, it is worthless if it is not applicable to society, so try hard for making your technology be used by your customers.
  • And the last thing is that you have to keep your life balanced, physical and spiritual.

Welcome to My Weblog

Hi Folks, welcome to my Weblog. It’s a pleasure to have you visit my place to see my writing. I try my best to keep this Weblog updated with all the concept and knowledge about the Java Programming and Web Portal Technology.