Wednesday, February 13, 2013

Losing contact on LDAP server

I made a mistake in LDAP configuration file that would cause this error being shown.

ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)

I have miss configure SLAPD_LDAP=no in /etc/sysconfig/ldap, and this have cause whatever ldap operation like ldapadd and ldapsearch failed with this error.

Tuesday, February 12, 2013

Gaining clearer picture on fail-safe and fail-fast iterator

Reading code allowing me to gain more clearer picture on how fail-safe and fail fast iterator work. Some note to put is that fail safe is far more costly as it making another clone of Collection.
What are fail-safe and fail-fast iterators in Java They are exceptions raised during program execution when one thread adds data to a Java Collection and another thread iterates over the elements. Let’s discuss more in detail...

Put some cautious on Fail Safe iterator

Fail Safe Iterator isn't suitable for financial system which require critical attention on the output in the log. And the log should be treat as top priority.
Fail Fast Iterator vs Fail Safe Iterator How does a system react when there is a failure characterizes it as a fail fast or a fail safe system. This article is to discuss whether fail safe or fail fast is better. Then what it has to do with java.

Sunday, February 3, 2013

Successfully configure LDAP in CentOS

I think I have successfully setup the LDAP server locate in CentOS. Yes, finally I have successfully configure it. When I search on something that doesn't exists, ldapsearch -x -b "dc=huahsin,dc=org", I see No such object in output.
# search result
search: 2
result: 32 No such object

When I search something exist, ldapsearch -x -b "dc=stratus,dc=local", I see Success in output.
# search result
search: 2
result: 0 Success
HowTO: Setup an LDAP server and Client CentOS 6.2 PREAMBLE: OK, so I have been struggling with this for a while because of an "undocumented feature", or at least undocumented from what I could find. I have read 2 RHCE books thus far. Neither of them gave any indication as to what the problem was or how to fix it.

Saturday, February 2, 2013

Effort wasted on configuring LDAP on CentOS

I have been configuring LDAP server on CentOS for not less than 2 times on this tutorial without success. At the end of this tutorial, the output I receive is shown below where that particular line an empty line. Clueless...
Checking configuration files for slapd:
could not stat config file "/etc/openldap/slapd.conf": Permission denied (13)
slaptest: bad configuration file!
Install OpenLDAP on CentOS 6.3 The following section describes how to install and configure OpenLDAP on Redhat or CentOS 6.3. From the terminal window, enter the following command to install the OpenLDAP components.

Switch Google Chrome back to desktop mode

While I'm doing LDAP configuration for my CentOS in VirtualBox which host under Windows 8, I was highly depends on Google Chrome for document reference purpose. And it is very annoying when I switching back and forth in between Metro Mode and Desktop Mode. I still prefer Google Chrome back to Desktop Mode.
Toggle Google Chrome between Desktop and Metro mode This tutorial will show you how to quickly toggle Google Chrome browser back and forth between using desktop or Windows 8 (Metro) mode. When you switch back and forth between using desktop or Windows 8 (Metro) mode, all of your currently opened tabs in Google Chrome will remain intact.

Friday, February 1, 2013

LDAP configuration made easy with Apache Directory

Since the purpose of setting up LDAP is for personal research and development, it could be much more easier if I do it using ApacheDS and Apache Directory Studio.

Just few simple steps shown below:
  1. Download and extract the archive zip/tar.gz.
  2. Goto bin directory, execute apacheds program.
The Apache Directory The Apache Directory Project provides directory solutions entirely written in Java. These include a directory server, which has been certified as LDAP v3 compliant by the Open Group (ApacheDS), and Eclipse-based directory tools (Apache Directory Studio).