LDAP-279: Fiddling with logging dependencies.
This commit is contained in:
@@ -88,7 +88,7 @@
|
||||
<version>8.1.14.v20131031</version>
|
||||
<configuration>
|
||||
<webAppConfig>
|
||||
<contextPath>spring-ldap-user-admin-sample</contextPath>
|
||||
<contextPath>/spring-ldap-user-admin-sample</contextPath>
|
||||
</webAppConfig>
|
||||
</configuration>
|
||||
</plugin>
|
||||
@@ -101,18 +101,18 @@
|
||||
</repository>
|
||||
</repositories>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
<artifactId>logback-classic</artifactId>
|
||||
<version>1.0.13</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.ldap</groupId>
|
||||
<artifactId>spring-ldap-test</artifactId>
|
||||
<version>2.0.0.CI-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
<artifactId>logback-classic</artifactId>
|
||||
<version>1.0.13</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-databind</artifactId>
|
||||
|
||||
@@ -8,20 +8,26 @@ The core Spring application context of the sample is defined in resources/applic
|
||||
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
|
||||
To run the example, do `gradle jettyRun`, or `mvn jetty:run`, 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
|
||||
* `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`
|
||||
`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.
|
||||
`mvn jetty:run -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 uses Bootstrap to present a decent web design - copyright 2013 Twitter, Inc; distributed under the Apache 2 License.
|
||||
Reference in New Issue
Block a user