Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(java 17): Compile with Java 17 #45

Merged
merged 2 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: 11
java-version: 17
distribution: 'temurin'
cache: 'maven'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/createRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Release connector
uses: bonitasoft/action-release-connector@1.0.0
uses: bonitasoft/action-release-connector@2.0.0
id: release-connector
with:
release-version: ${{ github.event.inputs.version }}
Expand Down
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