Code Monkey home page Code Monkey logo

Comments (8)

cocoonkid avatar cocoonkid commented on August 29, 2024 1

Thank you for taking the time!

from abrechnung.

david-loe avatar david-loe commented on August 29, 2024

Can you post your .env file?

from abrechnung.

cocoonkid avatar cocoonkid commented on August 29, 2024

thanks for the swift reply.

unchanged from repo default.

# To ignore .env: git update-index --assume-unchanged .env
# To not ignore:  git update-index --no-assume-unchanged .env

# development | production
NODE_ENV=development

# Adding admin rights to one user
ADMIN_UID=professor

# URL to reach the frontend and backend (without trailing slash)
VITE_FRONTEND_URL=http://localhost:5000
VITE_BACKEND_URL=http://localhost:8000

# Timezone - find yours here: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TZ=Etc/UTC

# Cookie Secret
COOKIE_SECRET=secret

# LDAP Settings
LDAP_URL=ldaps://ldap:636
LDAP_BINDDN=cn=admin,dc=planetexpress,dc=com
LDAP_BINDCREDENTIALS=GoodNewsEveryone
LDAP_SEARCHBASE=ou=people,dc=planetexpress,dc=com
LDAP_SEARCHFILTER=(uid={{username}})
LDAP_TLS_REQUESTCERT=TRUE
LDAP_TLS_REJECTUNAUTHORIZED=FALSE
# The Attributes that define the mail adress, uid and display name of an LDAP user
LDAP_MAIL_ATTRIBUTE=mail
LDAP_UID_ATTRIBUTE=uid
LDAP_DISPLAYNAME_ATTRIBUTE=displayName

# SMTP Settings
SMTP_HOST=inbucket
SMTP_PORT=2500
# true for 465, false for other ports
SMTP_SECURE=FALSE
SMTP_USER=username
SMTP_PASS=password
[email protected]

# Ports
FRONTEND_PORT=5000
BACKEND_PORT=8000
INBUCKET_UI_PORT=9000
MONGO_EXPRESS_PORT=8081

# URL of the data base
MONGO_URL=mongodb://db:27017/reisekostenabrechnung

# Set default Language
VITE_I18N_LOCALE=de
VITE_I18N_FALLBACK_LOCALE=de

from abrechnung.

david-loe avatar david-loe commented on August 29, 2024

Also how can I set the password for the admin user?

This can not be set, it comes from the LDAP. You can login with professor:professor

Which URL are you using in the Browser? At the backend the VITE_FRONTEND_URL is defined as only valid origin. So you have to use localhost:5000

from abrechnung.

cocoonkid avatar cocoonkid commented on August 29, 2024

Yes that's what I am using.

I also tried
professor:professor

image

can I disable ldap and just use normal authentication for testing?
image

Again, my apology if I am missing smth obivious.

from abrechnung.

cocoonkid avatar cocoonkid commented on August 29, 2024

Now this is appearing too:

image

from abrechnung.

cocoonkid avatar cocoonkid commented on August 29, 2024

I reset the volumes and restarted the project:

image

and then the ldap container exits.

everything else looks good.

only upon restarting the containers the above error from the previous comment shows up.

from abrechnung.

cocoonkid avatar cocoonkid commented on August 29, 2024

I was able to fix the problem.
Actually it has nothing to do with your project :)

docker run --ulimit nofile=1024:1024 --rm -p 10389:10389 -p 10636:10636 rroemhild/test-openldap

fixed it and I added these in the compose file:

  # Test LDAP only in development mode
  ldap:
    build:
      context: ./dev-tools/ldap
      dockerfile: Dockerfile-${NODE_ENV}
    environment:
      - DEBUG=false
    ulimits:
      nofile:
        soft: 1024
        hard: 1024

from abrechnung.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.