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

Missing property subjectApi.source.ldap.param.ldapServerId.value in subject.properties #4

Open
salaun-urennes1 opened this issue Jun 28, 2021 · 1 comment

Comments

@salaun-urennes1
Copy link

Hi,

I am currently testing your documentation to install Grouper with Swarm.
During the "Populate Database" step I came across this error :

$ docker container run -it --rm \
 --mount type=bind,src=$(pwd)/configs-and-secrets/grouper.hibernate.properties,dst=/run/secrets/grouper_grouper.hibernate.properties \
 --mount type=bind,src=$(pwd)/configs-and-secrets/subject.properties,dst=/run/secrets/grouper_subject.properties \
 --network internal \
 localhost:5000/organization/grouper-base gsh -registry -check -runscript -noprompt
...
grouper-api;grouper_error.log;;;2021-06-25 14:59:15,418: [main] ERROR LdapSourceAdapter.getLdapResultsHelper(582) -  - Ldap Exception: Missing property subjectApi.source.ldap.param.ldapServerId.value in subject.properties.  The value of this property should point to your LDAP configuration in the grouper-loader.properties file. e.g. if your grouper-loader.properties has ldap.personLdap.url, then the value of this property would be personLdap.

I had to apply the following changes:

  1. create a configs-and-secrets/grouper-loader.properties as follows :
ldap.personLdap.user = cn=Directory Manager
ldap.personLdap.pass = password

2.complete configs-and-secrets/subject.properties with: subjectApi.source.ldap.param.ldapServerId.value = personLdap
3. add following arguments to docker container run: --mount type=bind,src=$(pwd)/configs-and-secrets/grouper-loader.properties,dst=/run/secrets/grouper_grouper-loader.properties

Maybe worth completing your documentation+config

@richWeissler
Copy link

Thank you so much for this note!
I did have to add two additional lines to the grouper-loader.properties before my instance would work:

ldap.personLdap.url = ldap://anc_ldap:389
ldap.personLdap.tls = false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants