Skip to content

Commit

Permalink
Adding test instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
vhemery committed Nov 28, 2023
1 parent 0742ff2 commit 4f15dc0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,24 @@ __Clone__ or __fork__ this repository, then at the root of the project run:

`./mvnw`

## Test

In order to use this connector, you need to have an LDAP server configured.
You can find instructions to deploy an LDAP server with Docker [here](https://docs.digital.ai/bundle/devops-deploy-version-v.22.2/page/deploy/how-to/setup-and-configuration-LDAP-with-deploy.html).<br>
(Adapt `dc=xl,dc=com` and `-e LDAP_ORGANISATION="XL" -e LDAP_DOMAIN="xl.com"` to use `dc=bonita,dc=org` and `-e LDAP_ORGANISATION="bonita" -e LDAP_DOMAIN="bonita.org"` instead if you want to use the ldif file bellow)

To initialize your LDAP server with test data, you can find an example ldif file to import on [bonita-ldap-synchronizer](https://github.com/bonitasoft/bonita-ldap-synchronizer/blob/dev/example/docker/ldap/openldap/resources/01_ldap_data.ldif).

To help you fill the LDAP search wizard in Bonita Studio, you can use the "search" page of phpLDAPadmin which perform similar requests.

### Troubleshooting

If you get an error such as `[LDAP: error code 34 - invalid DN]`<br>
Make sure you use the full username such as `cn=admin,dc=bonita,dc=org`

I you get an exception `java.lang.ClassCastException: class java.util.ArrayList cannot be cast to class java.lang.String (java.util.ArrayList and java.lang.String are in module java.base of loader 'bootstrap')`<br>
Your affected variable must be of type `Java Object` with class `java.util.List`

## Release

In order to create a new release:
Expand Down

0 comments on commit 4f15dc0

Please sign in to comment.