Skip to content

Commit

Permalink
Updated documentation in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
valdar committed Jul 31, 2018
1 parent 4faa8aa commit 123b249
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# Jboss Fuse Ldap authentication lab
> **IMPORTANT:** Before launching the following script you need to build the fuse image yourself, see [# Build the Fuse image](#build-the-fuse-image)
`sh fuseLdap.sh`

This is a simple script that run for you 3 docker images:
- OpenLdap with preloaded users/groups data: valdar/ldapfuseusers:1.0.0
- address: `localhost:389` admin dn: `cn=admin,dc=example,dc=org` admin password: `admin`
- PhpLdapAdmin (just to have a convenient way to visualize/modifiy ldap contents): osixia/phpldapadmin:0.6.9
- address: `https://localhost` admin dn: `cn=admin,dc=example,dc=org` admin password: `admin`
- Jbosse fuse (**you need to build this image yourself**): https://github.com/paoloantinori/dockerfiles/tree/master/centos/fuse
- Jbosse fuse (**you need to build this image yourself, see [# Build the Fuse image](#build-the-fuse-image)**)

After that it creates a fabric and update the configuration to authenticate using the openldap server. In this way you will be able to log in in to karaf console or hawtio using credentials stored in openldap:
- user: `fuseldap` password: `fuseldap` group: `admin`
Expand All @@ -23,14 +25,15 @@ CONTAINER ID IMAGE COMMAND CREATED
```
in this example the hawtio console would be at `http://localhost:49156`, activeMQ at `localhost:49154`, karaf console at `localhost:49155` and ssh into the container at `localhost:49158`.

## NOTE Before launching the script:
Before launching the script you need to build fuse6.3 image yourself by download JBoss Fuse distribution from
Should now be possible to login in to _hawtio_ or the _karaf console_ using the users `fuseldap` with password `fuseldap` (coming from ldap) and the default user `admin` password `admin` (coming from the ZookeeperLoginMoule); should not be possible to login with user `notfuseldap` and password `notfuseldap` (although this one is present in ldap, dose not belong to the group admin so is lacking the permissions to login to fuse).

## Build the Fuse image
Before launching the script you need to build fuse6.3 image yourself by downloading JBoss Fuse distribution from

http://www.jboss.org/products/fuse

The build process will extract in the Docker image all the zip files it will find in your working folder. If it finds more than a file it will put all of them inside the Docker it's going to be created. Most of the time you will want to have just a single zip file.

## To build your Fuse image:
# download docker file
wget https://raw.github.com/paoloantinori/dockerfiles/master/centos/fuse/fuse/Dockerfile

Expand All @@ -40,6 +43,8 @@ The build process will extract in the Docker image all the zip files it will fin
# build your docker fuse image. you are expected to have either a copy of jboss-fuse-karaf-6.3.x.redhat-y.zip or a link to that file in the current folder.
docker build --rm -t fuse6.3 .

more infoan be found at https://github.com/paoloantinori/dockerfiles/tree/master/centos/fuse

# Instructions for Fuse 6.2.1

Instructions and code for this same lab targeting Fuse 6.2.1 has been moved to his own branch: https://github.com/valdar/fuseLdapAuthentcation/tree/fuse-6.2.1

0 comments on commit 123b249

Please sign in to comment.