| | |
| | | //deleted than this access check is skipped. |
| | | ModificationType modType=m.getModificationType(); |
| | | if((modType == ModificationType.DELETE && |
| | | modAttr.getValues().isEmpty()) || |
| | | modAttr.isEmpty()) || |
| | | (modType == ModificationType.REPLACE || |
| | | modType == ModificationType.INCREMENT)) { |
| | | /* |
| | |
| | | resourceEntry.getAttribute(modAttrType,modAttr.getOptions()); |
| | | if(attrList != null) { |
| | | for (Attribute a : attrList) { |
| | | for (AttributeValue v : a.getValues()) { |
| | | for (AttributeValue v : a) { |
| | | container.setCurrentAttributeValue(v); |
| | | container.setRights(ACI_WRITE_DELETE); |
| | | if(!skipAccessCheck && |
| | |
| | | } |
| | | } |
| | | |
| | | if(modAttr.hasValue()) { |
| | | for(AttributeValue v : modAttr.getValues()) { |
| | | if(!modAttr.isEmpty()) { |
| | | for(AttributeValue v : modAttr) { |
| | | container.setCurrentAttributeType(modAttrType); |
| | | switch (m.getModificationType()) |
| | | { |
| | |
| | | { |
| | | for (Attribute attr : modifiedAttrs) |
| | | { |
| | | for (AttributeValue val : attr.getValues()) |
| | | for (AttributeValue val : attr) |
| | | { |
| | | container.setCurrentAttributeValue(val); |
| | | container.setRights(ACI_WRITE_ADD); |
| | |
| | | entry.getOperationalAttribute(aciType, null); |
| | | for (Attribute attribute : attributeList) |
| | | { |
| | | for (AttributeValue value : attribute.getValues()) |
| | | for (AttributeValue value : attribute) |
| | | { |
| | | try { |
| | | DN dn=entry.getDN(); |
| | |
| | | boolean ret; |
| | | if(!(ret=skipAccessCheck(operation))) { |
| | | Entry e = new Entry(dn, null, null, null); |
| | | LinkedHashSet<AttributeValue> vals = new LinkedHashSet<AttributeValue>(); |
| | | List<String> URLStrings=reference.getReferralURLs(); |
| | | //Load the values, a bind rule might want to evaluate them. |
| | | for(String URLString : URLStrings) { |
| | | vals.add(new AttributeValue(refAttrType, URLString)); |
| | | AttributeBuilder builder = |
| | | new AttributeBuilder(refAttrType, ATTR_REFERRAL_URL); |
| | | List<String> URLStrings = reference.getReferralURLs(); |
| | | |
| | | // Load the values, a bind rule might want to evaluate them. |
| | | for (String URLString : URLStrings) { |
| | | builder.add(new AttributeValue(refAttrType, URLString)); |
| | | } |
| | | Attribute attr = |
| | | new Attribute(refAttrType, ATTR_REFERRAL_URL, vals); |
| | | e.addAttribute(attr,null); |
| | | |
| | | e.addAttribute(builder.toAttribute(),null); |
| | | SearchResultEntry se=new SearchResultEntry(e); |
| | | AciLDAPOperationContainer operationContainer = |
| | | new AciLDAPOperationContainer(operation, |