diff --git a/spring-ldap-person/src/main/webapp/WEB-INF/apacheDsContext.xml b/spring-ldap-person/src/main/webapp/WEB-INF/apacheDsContext.xml
index c00d834c..715fa91c 100644
--- a/spring-ldap-person/src/main/webapp/WEB-INF/apacheDsContext.xml
+++ b/spring-ldap-person/src/main/webapp/WEB-INF/apacheDsContext.xml
@@ -17,7 +17,7 @@
simple
- ${userName}
+ ${userDn}
${password}
diff --git a/spring-ldap-person/src/main/webapp/WEB-INF/applicationContext.xml b/spring-ldap-person/src/main/webapp/WEB-INF/applicationContext.xml
index 7a86320a..8b3b181d 100644
--- a/spring-ldap-person/src/main/webapp/WEB-INF/applicationContext.xml
+++ b/spring-ldap-person/src/main/webapp/WEB-INF/applicationContext.xml
@@ -15,7 +15,7 @@
-
+
diff --git a/spring-ldap-person/src/main/webapp/WEB-INF/ldap.properties b/spring-ldap-person/src/main/webapp/WEB-INF/ldap.properties
index eff9c99f..70995985 100644
--- a/spring-ldap-person/src/main/webapp/WEB-INF/ldap.properties
+++ b/spring-ldap-person/src/main/webapp/WEB-INF/ldap.properties
@@ -1,4 +1,4 @@
urls=ldap://127.0.0.1
-userName=uid=admin,ou=system
+userDn=uid=admin,ou=system
password=secret
base=dc=jayway,dc=se