Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/guilhermecamposo/demo_camel-ldap


https://github.com/guilhermecamposo/demo_camel-ldap

camel camelk ldap quarkus

Last synced: 26 days ago
JSON representation

Awesome Lists containing this project

README

        

= Camel LDAP Demo

Demonstration on how to use Camel K and Camel Extensions for Quarkus to run the https://camel.apache.org/components/3.20.x/ldap-component.html[ldap component].

== Environment

- Tested on OCP 4.12

== Installation

=== Parameters

[options="header"]
|=======================
| Parameter | Example Value | Definition
| token | sha256~vFanQbthlPKfsaldJT3bdLXIyEkd7ypO_XPygY1DNtQ | access token for a user with cluster-admin privileges
| server | https://api.mycluster.domain.com:6443 | OpenShift cluster API URL
|=======================

=== How to run the playbook

----
ansible-playbook -e token=${token} -e server=${server} playbook.yml
----

== How to run the demo

This demo has 3 different implementations. Each one of them will require different steps. For more info:

* link:examples/camel-k-single-file/README.adoc[Camel K Single File]
* link:examples/camel-k-dependency/README.adoc[Camel K Dependency]
* link:examples/CEQ/README.adoc[Camel Extension for Quarkus]

== How to test

All the examples will expose the same REST interface that is described in the open-api schema created using Apicurito.
So use curl to list objects saved on the LDAP container.

Example calls:

* Query specific user:

LDAP_ROUTE=$(oc get route ldap-route -n camel-k-ldap -o jsonpath='{.spec.host}')

----
curl --location "http://$LDAP_ROUTE/ldap?query=cn%3Duser01"
----