-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
The problem with LDAP group in homer-webapp docker container #592
Comments
>>When the container has restarted More information is needed in order to reproduce the issue. If you find a solution, please share it for the community's benefit. Thank you P.S. Don't forget to STAR our project :) |
Hello. |
What would the issue be? The relevant parts of the init script are simply replacing the ENV values in the template, so I see no reason why the json config results should differ between restarts. Are you mounting the config file using a volume on your filesystem? |
No, I don't mount the config file and don't use a volume.
You can try and will get the same error. |
@lmangani
|
@lmangani |
@perrfect no but perhaps @adubovikov or @hamidrhashmi can help with this |
@adubovikov Can you help please and check? |
@lmangani @adubovikov there is search replace for homer_user string in entrypoint.sh that's why @perrfect group name (hepic_users) being replaced with 'roots' https://github.com/sipcapture/homer-app/blob/master/docker/docker-entrypoint.d/1#L16C6-L16C6 |
Hi, On first startup the container runs /docker-entrypoint.d/1 which makes (among many others) the following changes with sed:
This all works as expected on first startup. However the problem is if your LDAP group name is (or contains) "homer_user" then on the SECOND boot the second sed above will match and change the ldap config to be a string containing the $DB_USER variable (by default "root"). The simplest fix would be to change the initial string in the template config file to be homer_db_user, instead of just homer_user - then it would be far less likely to clash with any end user LDAP group names. It would also match the initial naming format of the "homer_db_host" variable |
Hi @myp-neal-harrington We're doing an additional test for backward compatibility and probably make a PR to fix it. Thank you for your great help! |
Hello.
I have some problems with LDAP_USERGROUP in the homer-webapp docker container in a /usr/local/homer/etc/webapp_config.json config.
When the container has restarted usergroup are changed from
"usergroup": "sec_homer_users"
to"usergroup": "sec_roots"
.Only removing the container helps
This group I forward to the config via docker-compose, as:
"LDAP_USERGROUP=sec_homer_users"
The text was updated successfully, but these errors were encountered: