59

I need to test an application which uses LDAP for authentication, but still I don't have access to the server I have to use, but I need to test my application.

Does somebody know if is there any LDAP server with data that i can use for access??

pnuts
  • 58,317
  • 11
  • 87
  • 139
user981136
  • 617
  • 1
  • 5
  • 4
  • 4
    FYI I found this https://github.com/rroemhild/docker-test-openldap to test with my software... – Aleksandar Pavić Nov 23 '17 at 13:01
  • The same https://github.com/EugenMayer/docker-image-ldapexample, just using the official docker ldap image and supporting different types and ldif autoimport. TLS/SSL included (also with auto-generation) – Eugen Mayer Sep 12 '22 at 12:31

4 Answers4

92

Here you go: Online LDAP Test Server

It's free, contains data, browsable. Make sure you use LDAP v3 when trying to bind.

Example of using from command line:

ldapsearch -W -h ldap.forumsys.com -D "uid=tesla,dc=example,dc=com" -b "dc=example,dc=com"

Password: password

Returns:

# extended LDIF
#
# LDAPv3
# base <dc=example,dc=com> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

...

# search result
search: 2
result: 0 Success

# numResponses: 16
# numEntries: 15
0x8BADF00D
  • 7,138
  • 2
  • 41
  • 34
mak
  • 1,384
  • 1
  • 13
  • 21
  • 3
    The forumsys server is currently available. I just connected with the above example command, and got the expected result. (I had previously used ldap.testathon.net, but that went away sometime in the past few years.) – joecullin Feb 11 '17 at 12:30
  • by the way, still unavailable. try ldap://ipa.demo1.freeipa.org – Rusher Dec 15 '22 at 15:37
6

If you use the UnboundID LDAP SDK, you can stand up an in-memory LDAP server to use for testing. The API to deploy an in-memory server is included in the API. The standard edition is free, and the source code is included. I've included an example in this blog entry.

Ryan M
  • 18,333
  • 31
  • 67
  • 74
Terry Gardner
  • 10,957
  • 2
  • 28
  • 38
1

If you use a unix-like OS, I wrote a simple server in Java, that uses the Apache Directory Studio SDK to serve LDAP:

https://github.com/intelie/dummyldap

Juan Lopes
  • 10,143
  • 2
  • 25
  • 44
-2

ldap://directory.verisign.com is available according to one of Terry's blogs.

user207421
  • 305,947
  • 44
  • 307
  • 483
  • 1
    As far as I know, just the root DSE can be retrieved from directory.verisign.com, and the namingContexts are not visible. – Terry Gardner Nov 29 '11 at 16:25