Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-1499

LDAP documentation could be improved

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.0, 2.0-M1
    • 1.6.0, 2.0-M1
    • camel-ldap
    • None
    • Wiki pages

    Description

      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 (http://camel.apache.org/ldap.html):

      "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);
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            huntc@internode.on.net Christopher Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: