camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] Commented: (CAMEL-1499) LDAP documentation could be improved
Date Mon, 30 Mar 2009 07:25:42 GMT


Claus Ibsen commented on CAMEL-1499:

Karma granted.

> LDAP documentation could be improved
> ------------------------------------
>                 Key: CAMEL-1499
>                 URL:
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-ldap
>    Affects Versions: 1.6.0, 2.0-M1
>         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.:
> {code}
> 		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);
> {code}

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

View raw message