james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r1083685 - /james/server/trunk/ldap/src/main/java/org/apache/james/user/ldap/ReadOnlyUsersLDAPRepository.java
Date Mon, 21 Mar 2011 06:44:31 GMT
Author: norman
Date: Mon Mar 21 06:44:31 2011
New Revision: 1083685

URL: http://svn.apache.org/viewvc?rev=1083685&view=rev
Log:
Fix configuration check for restrictions. Thanks to Hebus Troy for the patch. See JAMES-1204

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=1083685&r1=1083684&r2=1083685&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
Mon Mar 21 06:44:31 2011
@@ -237,7 +237,7 @@ public class ReadOnlyUsersLDAPRepository
         HierarchicalConfiguration restrictionConfig = null;
         // Check if we have a restriction we can use
         // See JAMES-1204
-        if (configuration.containsKey("restriction")) {
+        if (configuration.containsKey("restriction[@memberAttribute]")) {
             restrictionConfig = configuration.configurationAt("restriction");
         }
         restriction = new ReadOnlyLDAPGroupRestriction(restrictionConfig);



---------------------------------------------------------------------
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