Giter Site home page Giter Site logo

Adding examples about ldap-server HOT 6 CLOSED

intoolswetrust avatar intoolswetrust commented on August 13, 2024
Adding examples

from ldap-server.

Comments (6)

kwart avatar kwart commented on August 13, 2024

Could you send a pull request with the suggested changes?

from ldap-server.

albfan avatar albfan commented on August 13, 2024

Sure, Let me rework it

from ldap-server.

kwart avatar kwart commented on August 13, 2024

Thank you.
Just a note, I've decided to move some of my projects to a newly created GitHub organization (intoolswetrust) and the ldap-server is one of them. So please don't be surprised by the change. :-)

from ldap-server.

kwart avatar kwart commented on August 13, 2024

And another note: I've replaced the dc=jboss,dc=org by dc=ldap,dc=example in the default LDIF.

from ldap-server.

albfan avatar albfan commented on August 13, 2024

Returning to this issue:

In dockerfile it misses the anonymous access (from local, sudo is needed to use privileged port):

sudo java -jar target/ldap-server.jar -p 389 -sp 636 -b 0.0.0.0 -a

anonymous access:

$ ldapsearch -x -b "dc=ldap,dc=example"
# extended LDIF
#
# LDAPv3
# base <dc=ldap,dc=example> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# Roles, ldap.example
dn: ou=Roles,dc=ldap,dc=example
ou: Roles
objectclass: top
objectclass: organizationalUnit

# Admin, Roles, ldap.example
dn: cn=Admin,ou=Roles,dc=ldap,dc=example
cn: Admin
objectclass: top
objectclass: groupOfNames
member: uid=jduke,ou=Users,dc=ldap,dc=example

# ldap.example
dn: dc=ldap,dc=example
dc: ldap
objectclass: top
objectclass: domain

# Users, ldap.example
dn: ou=Users,dc=ldap,dc=example
ou: Users
objectclass: top
objectclass: organizationalUnit

# jduke, Users, ldap.example
dn: uid=jduke,ou=Users,dc=ldap,dc=example
sn: duke
cn: Java Duke
objectclass: top
objectclass: person
objectclass: inetOrgPerson
objectclass: organizationalPerson
userpassword:: dGhlZHVrZQ==
uid: jduke

# search result
search: 2
result: 0 Success

# numResponses: 6
# numEntries: 5

admin access (password: theduke):

$ ldapsearch -x -b "dc=ldap,dc=example" -D "uid=jduke,ou=Users,dc=ldap,dc=example" -W
Enter LDAP Password: 
# extended LDIF
#
# LDAPv3
# base <dc=ldap,dc=example> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# Roles, ldap.example
dn: ou=Roles,dc=ldap,dc=example
ou: Roles
objectclass: top
objectclass: organizationalUnit

# Admin, Roles, ldap.example
dn: cn=Admin,ou=Roles,dc=ldap,dc=example
cn: Admin
objectclass: top
objectclass: groupOfNames
member: uid=jduke,ou=Users,dc=ldap,dc=example

# ldap.example
dn: dc=ldap,dc=example
dc: ldap
objectclass: top
objectclass: domain

# Users, ldap.example
dn: ou=Users,dc=ldap,dc=example
ou: Users
objectclass: top
objectclass: organizationalUnit

# jduke, Users, ldap.example
dn: uid=jduke,ou=Users,dc=ldap,dc=example
sn: duke
cn: Java Duke
objectclass: top
objectclass: person
objectclass: inetOrgPerson
objectclass: organizationalPerson
userpassword:: dGhlZHVrZQ==
uid: jduke

# search result
search: 2
result: 0 Success

# numResponses: 6
# numEntries: 5

Can I add that as usage examples on README.md in a PR?

from ldap-server.

kwart avatar kwart commented on August 13, 2024

@albfan Yes. Having the ldapsearch samples in the README.md could be helpful for other users. I think, only the commands themselves would be the best or commands with cut output (to a few lines).
If you add also the parameter to Dockerfile, it would be great.
Thank you.

from ldap-server.

Related Issues (17)

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.