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

LDAP Support #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

LDAP Support #16

wants to merge 2 commits into from

Conversation

m1k1o
Copy link
Owner

@m1k1o m1k1o commented Jun 11, 2020

Most likely won't be used by many people, so it should not increase image size.

Build container:

docker build --build-arg LDAP=true -t m1k1o/blog:ldap .

Run LDAP server:

docker run -d \
    -p 389:389 \
    -p 636:636 \
    --name my-openldap-container \
    osixia/openldap:1.3.0

Run blog:

docker run -d \
    -p 80:80 \
    -e "BLOG_LDAP_ENABLED=true" \
    -e "BLOG_LDAP_HOST=localhost" \
    -e "BLOG_LDAP_PORT=389" \
    -e "BLOG_LDAP_ADMIN_DN='dc=example,dc=org'" \
    -e "BLOG_LDAP_VISITOR_DN='ou=visitor,dc=example,dc=org'" \
    -v $PWD/data:/var/www/html/data \
    m1k1o/blog:ldap

Login with admin:admin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant