Code Monkey home page Code Monkey logo

Comments (4)

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

Hi,
I'm guessing it's because your VITE_BACKEND_URL is not correct
It may need to be something like this: 192.168.1.111:8000

But for more information the error should be visible in the browser console.

from abrechnung.

meik1337 avatar meik1337 commented on August 29, 2024

Thanks david,
now im able to login, do you have a functional example for active directory?
now we receive a error : unexpected number of matches (36) for "tester" username

Is UID samAccountName correct?
Thanks

# LDAP Settings
LDAP_URL=ldaps://dc01.ad.domain.de:636
LDAP_BINDDN=cn=svc_ldap,ou=Services,dc=ad,dc=domain,dc=de
LDAP_BINDCREDENTIALS=blabla
LDAP_SEARCHBASE=dc=ad,dc=domain,dc=de
LDAP_SEARCHFILTER=(&(objectclass=user)(objectcategory=person)(memberof=cn=Mitarbeiter,cn=Users,dc=ad,dc=domain,dc=de))
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=sAMAccountName
#LDAP_SURNAME_ATTRIBUTE=sn
#LDAP_GIVENNAME_ATTRIBUTE=givenName

from abrechnung.

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

I'm using passport's ldapauth.

I'm guessing your LDAP_SEARCHFILTER is missing something like: (samaccountname={{username}})
So: (&(objectclass=user)(objectcategory=person)(memberof=cn=Mitarbeiter,cn=Users,dc=ad,dc=domain,dc=de)(samaccountname={{username}}))

Here one example from passport-ldapauth for Active Directory: https://www.passportjs.org/packages/passport-ldapauth/#active-directory-over-ssl-example

from abrechnung.

meik1337 avatar meik1337 commented on August 29, 2024

Thanks David, that was the problem

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.