Skip to content

broken logic with $WAS_ADMIN_PASSWORD_SET in startup.shΒ #691

@buergeb

Description

@buergeb

olcRootPW is always rehashed if the container starts.
Instead of

    if [[ -f "$WAS_ADMIN_PASSWORD_SET" ]]; then
      ...
    else
        touch "$WAS_ADMIN_PASSWORD_SET"
    fi

the logic should be

    if [[ ! -f "$WAS_ADMIN_PASSWORD_SET" ]]; then
        ...
        touch "$WAS_ADMIN_PASSWORD_SET"
    fi

to also allow to delete plain text password in LDAP_ADMIN_PASSWORD from .env after initialisation.

I patched the startup.sh in my environment and it works as intended.

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