星期五, 11月 22, 2024

Replace ldap-utils with cURL

  • docker run -d --name openldap -p 1389:1389 bitnami/openldap:2.6.8
  • docker ps
    • openldap up and running
  • docker exec -it openldap ldapsearch -H ldap://localhost:1389 -x -b dc=example,dc=org
    • numEntries: 5
  • ldapsearch -H ldap://localhost:1389 -x -b dc=example,dc=org
    • ldapsearch: No such file or directory
  • curl ldap://localhost:1389/dc=example,dc=org??sub
    • numEntries: 5

沒有留言:

張貼留言