james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbre...@apache.org
Subject svn commit: r1209181 - /james/server/trunk/ldap/src/main/java/org/apache/james/user/ldap/ReadOnlyUsersLDAPRepository.java
Date Thu, 01 Dec 2011 18:53:05 GMT
Author: sbrewin
Date: Thu Dec  1 18:53:04 2011
New Revision: 1209181

URL: http://svn.apache.org/viewvc?rev=1209181&view=rev
Log:
JAMES-1351 - ReadOnlyUsersLDAPRepository credentials parameter should be optional
Added a default of an empty String

Modified:
    james/server/trunk/ldap/src/main/java/org/apache/james/user/ldap/ReadOnlyUsersLDAPRepository.java

Modified: james/server/trunk/ldap/src/main/java/org/apache/james/user/ldap/ReadOnlyUsersLDAPRepository.java
URL: http://svn.apache.org/viewvc/james/server/trunk/ldap/src/main/java/org/apache/james/user/ldap/ReadOnlyUsersLDAPRepository.java?rev=1209181&r1=1209180&r2=1209181&view=diff
==============================================================================
--- james/server/trunk/ldap/src/main/java/org/apache/james/user/ldap/ReadOnlyUsersLDAPRepository.java
(original)
+++ james/server/trunk/ldap/src/main/java/org/apache/james/user/ldap/ReadOnlyUsersLDAPRepository.java
Thu Dec  1 18:53:04 2011
@@ -210,7 +210,9 @@ public class ReadOnlyUsersLDAPRepository
     public void configure(HierarchicalConfiguration configuration) throws ConfigurationException
{
         ldapHost = configuration.getString("[@ldapHost]");
         principal = configuration.getString("[@principal]");
-        credentials = configuration.getString("[@credentials]");
+        // JAMES-1351 - ReadOnlyUsersLDAPRepository credentials parameter should be optional
+        //              Added an emtpy String as the default
+        credentials = configuration.getString("[@credentials]", "");
         userBase = configuration.getString("[@userBase]");
         userIdAttribute = configuration.getString("[@userIdAttribute]");
         userObjectClass = configuration.getString("[@userObjectClass]");



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message