Comments (6)
Could you send a pull request with the suggested changes?
from ldap-server.
Sure, Let me rework it
from ldap-server.
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.
And another note: I've replaced the dc=jboss,dc=org
by dc=ldap,dc=example
in the default LDIF.
from ldap-server.
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.
@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)
- Change LDAP Credential
- How to log LDAP request query details? HOT 3
- Apache Directory Studio refuses connection Docker HOT 4
- Avoid initial error
- How can I make the data persistent on the disk? HOT 3
- Anonymous bind HOT 1
- Error E04269 HOT 2
- Ldaps?
- The project cannot support the test of LDAP injection. HOT 1
- Attribute types are in lowercase within searchResEntry HOT 2
- Start TLS - Unrecognized extended operation
- Can SearchResultEntryHandler be used to intercept and change results?
- Docker README has inaccurate instructions for how to load a custom LDIF on startup
- TransportContext.java:352|Fatal (HANDSHAKE_FAILURE): no cipher suites in common ( "throwable"
- Ldap server on Db HOT 1
- groupOfUniqueMembers does not exist HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ldap-server.