From 09dc48ae370fda6b9c3e8c40994ed1a3459436cf Mon Sep 17 00:00:00 2001
From: Gregor Lenz <g.lenz@imperial.ac.uk>
Date: Tue, 4 Oct 2016 14:39:59 +0100
Subject: [PATCH] ldap configuration

---
 .../webapp/WEB-INF/conf/xnat-conf.properties  | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/src/main/webapp/WEB-INF/conf/xnat-conf.properties b/src/main/webapp/WEB-INF/conf/xnat-conf.properties
index 965c8506..0655e05e 100644
--- a/src/main/webapp/WEB-INF/conf/xnat-conf.properties
+++ b/src/main/webapp/WEB-INF/conf/xnat-conf.properties
@@ -16,3 +16,22 @@ hibernate.hbm2ddl.auto=update
 hibernate.show_sql=false
 hibernate.cache.use_second_level_cache=true
 hibernate.cache.use_query_cache=true
+
+site.title=XNAT123
+
+# Comma-separated list of the providers that users will be able to use to authenticate.
+provider.providers.enabled=db, ldap1
+
+provider.db.name=Database
+provider.db.id=localdb
+provider.db.type=db
+
+# Add "ldap1" to the enabled provider list above and fill in the missing fields to enable LDAP authentication.
+provider.ldap1.name=LDAP
+provider.ldap1.id=ldap1
+provider.ldap1.type=ldap
+provider.ldap1.address=ldap://146.169.47.171:389/dc=biomedia,dc=imperial,dc=ac,dc=uk
+provider.ldap1.userdn=cn=admin,dc=biomedia,dc=imperial,dc=ac,dc=uk
+provider.ldap1.password=biomedia
+provider.ldap1.search.base=ou=people
+provider.ldap1.search.filter=(uid={0})
\ No newline at end of file
-- 
GitLab