| | |
| | | if (missingValues.isEmpty()) |
| | | { |
| | | RDN rdn = modifiedEntry.getDN().getRDN(); |
| | | if (rdn.hasAttributeType(t) && |
| | | if ((rdn != null) && rdn.hasAttributeType(t) && |
| | | (! modifiedEntry.hasValue(t, a.getOptions(), |
| | | rdn.getAttributeValue(t)))) |
| | | { |
| | |
| | | { |
| | | modifiedEntry.removeAttribute(t, a.getOptions()); |
| | | RDN rdn = modifiedEntry.getDN().getRDN(); |
| | | if (rdn.hasAttributeType(t) && |
| | | if ((rdn != null) && rdn.hasAttributeType(t) && |
| | | (! modifiedEntry.hasValue(t, a.getOptions(), |
| | | rdn.getAttributeValue(t)))) |
| | | { |
| | |
| | | modifiedEntry.putAttribute(t, attrList); |
| | | |
| | | RDN rdn = modifiedEntry.getDN().getRDN(); |
| | | if (rdn.hasAttributeType(t) && |
| | | if ((rdn != null) && rdn.hasAttributeType(t) && |
| | | (! modifiedEntry.hasValue(t, a.getOptions(), |
| | | rdn.getAttributeValue(t)))) |
| | | { |
| | |
| | | modifiedEntry.putAttribute(t, attrList); |
| | | |
| | | RDN rdn = modifiedEntry.getDN().getRDN(); |
| | | if (rdn.hasAttributeType(t) && |
| | | if ((rdn != null) && rdn.hasAttributeType(t) && |
| | | (! modifiedEntry.hasValue(t, a.getOptions(), |
| | | rdn.getAttributeValue(t)))) |
| | | { |
| | |
| | | } |
| | | |
| | | RDN rdn = modifiedEntry.getDN().getRDN(); |
| | | if (rdn.hasAttributeType(t) && |
| | | if ((rdn != null) && rdn.hasAttributeType(t) && |
| | | (! modifiedEntry.hasValue(t, a.getOptions(), |
| | | rdn.getAttributeValue(t)))) |
| | | { |
| | |
| | | case INCREMENT: |
| | | // The specified attribute type must not be an RDN attribute. |
| | | rdn = modifiedEntry.getDN().getRDN(); |
| | | if (rdn.hasAttributeType(t)) |
| | | if ((rdn != null) && rdn.hasAttributeType(t)) |
| | | { |
| | | setResultCode(ResultCode.NOT_ALLOWED_ON_RDN); |
| | | appendErrorMessage(getMessage(MSGID_MODIFY_INCREMENT_RDN, |