camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Hunt (JIRA)" <>
Subject [jira] Created: (CAMEL-1499) LDAP documentation could be improved
Date Sun, 29 Mar 2009 11:30:42 GMT
LDAP documentation could be improved

                 Key: CAMEL-1499
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-ldap
    Affects Versions: 2.0-M1, 1.6.0
         Environment: Wiki pages
            Reporter: Christopher Hunt

On familiarising myself with the ldap component I found that I had to trawl through the source
code to gain a good understanding of how it should be used.

For example (

"In the sample below we fetch the rows from the customer table.
First we register our datasource in the Camel registry as testdb:"

is entirely incorrect. Perhaps it should say:

"In the sample below we create a JNDI DirContext and register it with our Camel context's
JNDI registry. The key used for registration is the remaining part of the ldap URI i.e. the
part without the ldap: and URI parameters. The DirContext should establish any authentication
requirements with the LDAP repository."

I then think that the example should illustrate how an anonymous DirContext can be established
outside of any ApacheDS dependencies e.g.:

		Hashtable<Object, Object> env = new Hashtable<Object, Object>();
		env.put(Context.INITIAL_CONTEXT_FACTORY, initialContextFactory);
		env.put(Context.PROVIDER_URL, providerURL);
		env.put(Context.SECURITY_AUTHENTICATION, "none");

		DirContext ctx = new InitialDirContext(env);

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message