LDAP-279: Initial version of complete user admin application.
This commit is contained in:
27
samples/user-admin/readme.md
Normal file
27
samples/user-admin/readme.md
Normal file
@@ -0,0 +1,27 @@
|
||||
## User Admin Sample
|
||||
|
||||
Sample application demonstrating how to do some real work with Spring LDAP. This is a fully functional LDAP user
|
||||
administration application. It uses many of the useful concepts in Spring LDAP and would serve as a
|
||||
good example for best practices and various useful tricks.
|
||||
|
||||
The core Spring application context of the sample is defined in resources/applicationContext.xml.
|
||||
By default this ApplicationContext will start an in-process Apache Directory Server instance, automatically populated
|
||||
with some test data. The data will be reset every time the application is restarted.
|
||||
|
||||
To run the example, do 'gradle jettyRun', and then navigate to http://localhost:8080/spring-ldap-user-admin-sample
|
||||
|
||||
It is also possible to run this sample application against a remote LDAP server as opposed to starting an in-process
|
||||
LDAP server. To do this, use the following system properties:
|
||||
|
||||
* spring.profiles.active - set this to `no-apacheds` to prevent the in-process ApacheDs to be launched
|
||||
* sample.ldap.url - the URL of the target LDAP server
|
||||
* sample.ldap.userDn - principal to use for authentication against the LDAP server
|
||||
* sample.ldap.password - authentication password
|
||||
* sample.ldap.base - the directory root to use - note that by default all data under this node will be deleted and replaced with test data
|
||||
* sample.ldap.clean - set this property to false to *not* clear the root node
|
||||
* sample.ldap.directory.type - NORMAL or AD. Specify AD if running against Active Directory in order to enable some particular AD tweaks
|
||||
|
||||
Example:
|
||||
`gradle jettyRun -Dspring.profiles.active=no-apacheds -Dsample.ldap.url=ldaps://127.0.0.1:636 -Dsample.ldap.userDn=CN=ldaptest,CN=Users,DC=261consulting,DC=local -Dsample.ldap.password=secret -Dsample.ldap.base=ou=test,dc=261consulting,dc=local -Dsample.ldap.directory.type=AD`
|
||||
|
||||
This sample includes Bootstrap - copyright 2013 Twitter, Inc; distributed under the Apache 2 License.
|
||||
Reference in New Issue
Block a user