问题
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??
回答1:
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
回答2:
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.
回答3:
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
回答4:
ldap://directory.verisign.com is available according to one of Terry's blogs.
来源:https://stackoverflow.com/questions/7667197/is-there-any-free-ldap-server-with-data