Giter VIP home page Giter VIP logo

Comments (6)

rroemhild avatar rroemhild commented on July 30, 2024

Hi, I can't reproduce your problem. Can you post any logs from the container? I've just tried the login with ldap-tools:

$ ldapwhoami  -v -x -h localhost
ldap_initialize( ldap://localhost )
anonymous
Result: Success (0)
$ ldapwhoami -v -x -h localhost -D "cn=Hermes Conrad,ou=people,dc=planetexpress,dc=com" -w hermes
ldap_initialize( ldap://localhost )
dn:cn=Hermes Conrad,ou=people,dc=planetexpress,dc=com
Result: Success (0)

from docker-test-openldap.

olibri-us avatar olibri-us commented on July 30, 2024

Hello, I will try to provide you with an example of what I'm trying to do and logs too.
Thanks for you quick answer !

from docker-test-openldap.

montetitan avatar montetitan commented on July 30, 2024

docker run --env LDAP_ORGANISATION="people" --env LDAP_DOMAIN="planetexpress.com" --env LDAP_ADMIN_PASSWORD="admin" --privileged -p 389:389 -p 636:636 --name my-openldap-container --detach rroemhild/test-openldap

how do i make
ldapwhoami -v -x -h localhost -D "ou=people,dc=planetexpress,dc=com" -w hermes work? or any other user for that matter?

from docker-test-openldap.

rroemhild avatar rroemhild commented on July 30, 2024

-w is the password for the user entry DN set with -D.

You have to use the DN from a user entry to login, i.e. for the user hermes:

ldapwhoami -v -x -h localhost -D "cn=Hermes Conrad,ou=people,dc=planetexpress,dc=com" -w hermes

for amy:

ldapwhoami -v -x -h localhost -D "cn=Amy Wong+sn=Kroker,ou=people,dc=planetexpress,dc=com" -w amy

from docker-test-openldap.

montetitan avatar montetitan commented on July 30, 2024

my issue is jxplorer gets the data via anonymous,
but if i give hermes/hermes or fry/fry via (user+password) it doesnt work,
any way to get it working for user+password?
Screenshot 2020-06-11 at 9 13 20 PM
attached screenshot as well,
anonymous gets me everything but im trying to login via the members and it fails

from docker-test-openldap.

rroemhild avatar rroemhild commented on July 30, 2024

hermes ist not the User DN. hermes is the value of the attribute uid. If you want to authenticate with user+password you need to perform an ldap search (uid=hermes) to get the DN for the entry that matches the search and then authenticate with DN+password.

from docker-test-openldap.

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.