Skip to content

LDAP environment variables and ambiguous characters #591

@tailtwo

Description

@tailtwo

Hello,

The user I use to bind to my LDAP server have a '&' character in its password. When this character is parsed, the string that correspond with the password in ldap-users.cf gets cut in two with bind_pw = admin

Let's say my password is ABC&DEF:

docker-compose.yml

[...]
environment:
  - LDAP_BIND_PW=ABC&DEF
[...]

/etc/postfix/ldap-users.cf

[...]
bind_pw = ABCbind_pw          = adminDEF  
[...]

Even with quotes and double quotes, it stays the same.
Is there any way I can fix this other than entering it manually?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions