You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2012/09/11 10:08:30 UTC
svn commit: r1383283 -
/directory/apacheds/branches/apacheds-mvbt/core-integ/src/test/java/org/apache/directory/server/core/authz/ModifyAuthorizationIT.java
Author: elecharny
Date: Tue Sep 11 08:08:29 2012
New Revision: 1383283
URL: http://svn.apache.org/viewvc?rev=1383283&view=rev
Log:
Pretty printed some String
Modified:
directory/apacheds/branches/apacheds-mvbt/core-integ/src/test/java/org/apache/directory/server/core/authz/ModifyAuthorizationIT.java
Modified: directory/apacheds/branches/apacheds-mvbt/core-integ/src/test/java/org/apache/directory/server/core/authz/ModifyAuthorizationIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-mvbt/core-integ/src/test/java/org/apache/directory/server/core/authz/ModifyAuthorizationIT.java?rev=1383283&r1=1383282&r2=1383283&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-mvbt/core-integ/src/test/java/org/apache/directory/server/core/authz/ModifyAuthorizationIT.java (original)
+++ directory/apacheds/branches/apacheds-mvbt/core-integ/src/test/java/org/apache/directory/server/core/authz/ModifyAuthorizationIT.java Tue Sep 11 08:08:29 2012
@@ -37,11 +37,11 @@ import org.apache.directory.server.core.
import org.apache.directory.server.core.integ.FrameworkRunner;
import org.apache.directory.server.core.integ.IntegrationUtils;
import org.apache.directory.shared.ldap.model.constants.SchemaConstants;
-import org.apache.directory.shared.ldap.model.entry.DefaultEntry;
+import org.apache.directory.shared.ldap.model.entry.Attribute;
import org.apache.directory.shared.ldap.model.entry.DefaultAttribute;
+import org.apache.directory.shared.ldap.model.entry.DefaultEntry;
import org.apache.directory.shared.ldap.model.entry.DefaultModification;
import org.apache.directory.shared.ldap.model.entry.Entry;
-import org.apache.directory.shared.ldap.model.entry.Attribute;
import org.apache.directory.shared.ldap.model.entry.Modification;
import org.apache.directory.shared.ldap.model.entry.ModificationOperation;
import org.apache.directory.shared.ldap.model.message.ModifyRequest;
@@ -279,12 +279,27 @@ public class ModifyAuthorizationIT exten
// Gives grantModify, and grantRead perm to all users in the Administrators group for
// entries and all attribute types and values
- createAccessControlSubentry( "selfModifyUserPassword", "{ " + " identificationTag \"addAci\", "
- + " precedence 14, " + " authenticationLevel none, " + " itemOrUserFirst userFirst: " + " { "
- + " userClasses { thisEntry }, " + " userPermissions " + " { " + " { "
- + " protectedItems {entry}, " + " grantsAndDenials { grantModify, grantBrowse, grantRead } "
- + " }, " + " { " + " protectedItems {allAttributeValues {userPassword}}, "
- + " grantsAndDenials { grantAdd, grantRemove } " + " } " + " } " + " } " + "}" );
+ createAccessControlSubentry(
+ "selfModifyUserPassword",
+ "{ " +
+ " identificationTag \"addAci\", " +
+ " precedence 14, " +
+ " authenticationLevel none, " +
+ " itemOrUserFirst userFirst: " +
+ " { " +
+ " userClasses { thisEntry }, " +
+ " userPermissions " + " { " +
+ " { " +
+ " protectedItems {entry}, " +
+ " grantsAndDenials { grantModify, grantBrowse, grantRead } " +
+ " }, " +
+ " { " +
+ " protectedItems {allAttributeValues {userPassword}}, " +
+ " grantsAndDenials { grantAdd, grantRemove } " +
+ " } " +
+ " } " +
+ " } " +
+ "}" );
// try a modify operation which should succeed with ACI
assertTrue( checkCanSelfModify( "billyd", "billyd", mods ) );