Skip to content

Issue with Environment Variable in Freepbx Service with Systemd and Podman #7254

@Amygos

Description

@Amygos

The Freepbx service fails to correctly read the environment variable
NETHVOICE_LDAP_USER when it contains a special character like \. This
causes issues with LDAP authentication. The NETHVOICE_LDAP_USER variable is
populated by selecting an account provider created through the Cluster Admin
interface from the NethVoice module interface.

Steps to reproduce:

  • Create an account provider through the Cluster Admin interface.
  • Select the created account provider from the NethVoice module interface,
    which populates the NETHVOICE_LDAP_USER variable with a value containing a
    \ (e.g., ws2022test\bindws2022ad).

Expected behavior The NETHVOICE_LDAP_USER variable should be read
correctly and used for LDAP authentication without issues.

Actual behavior The NETHVOICE_LDAP_USER variable loses the \ character
during reading by systemd, resulting in an incorrect value
(ws2022testbindws2022ad) and causing LDAP authentication to fail.

Components

  • ns8-nethvoice

See also
Link to discussion on private mattermost:
https://mattermost.nethesis.it/nethesis/pl/m4bhepknf3ye9jiaapipx3mbae

Acknowledgements
Thanks to @Stell0 and @DavidePrincipi for their discussion and
collaboration in resolving the issue. The proposed solution involves using
runagent to start podman and manage environment variables more reliably.

Metadata

Metadata

Assignees

No one assigned

    Labels

    nethvoiceBug or features releted to the NethVoice project

    Type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions