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

Incorrect config docker-entrypoint.d/1 for LDAP #127

Open
perrfect opened this issue Jul 28, 2022 · 0 comments
Open

Incorrect config docker-entrypoint.d/1 for LDAP #127

perrfect opened this issue Jul 28, 2022 · 0 comments

Comments

@perrfect
Copy link

perrfect commented Jul 28, 2022

For file 1 in docker-entrypoints.d I've found incorrect configuration:

  1. In the line if [ -n "$LDAP_ADMINGROUP" ]; then sed -i "/admingroup/ s/admin/${LDAP_ADMINGROUP}/g" /usr/local/homer/etc/webapp_config.json; fi if my admin group has not admin name I will get incorrect webapp_config.json
    For example:
    If my admin group has name - homer_admins_test in webapp_config.json I will get "homer_admins_testgroup": "homer_admins_test" because sed changes all words admin

  2. For if [ -n "$LDAP_GROUP_ATTRIB" ]; then sed -i "/group_attributes/ {N;N;N;N;N;N;N;N; s/\[.*/\[\n\t${LDAP_GROUP_ATTRIB}\n\t\],/g}" /usr/local/homer/etc/webapp_config.json; fi when I set LDAP_GROUP_ATTRIB, the line "admingroup": disappears in in the json - webapp_config.json.

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

1 participant