mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Violette Roche-Montane
17.39.2013 956f022fab3a625cadee5777213d33dd89996700
CR-1849 OPENDJ-985 Upgrade: add task to convert the "e:mail" mapping to "emailAddress:mail"
2 files modified
15 ■■■■■ changed files
opends/src/messages/messages/tools.properties 2 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/tools/upgrade/Upgrade.java 13 ●●●●● patch | view | raw | blame | history
opends/src/messages/messages/tools.properties
@@ -2711,4 +2711,6 @@
INFO_UPGRADE_TASK_8613_SUMMARY_10014=Adding HTTP connection handler configuration
INFO_UPGRADE_TASK_8832_SUMMARY_10015=Adding file-based HTTP access logger
INFO_UPGRADE_TASK_7466_SUMMARY_10016=Rename SNMP security config file
INFO_UPGRADE_TASK_8985_1_SUMMARY_10017=Adding 'emailAddress' attribute
INFO_UPGRADE_TASK_8985_2_SUMMARY_10018=Updating subject attribute to user attribute configuration
opends/src/server/org/opends/server/tools/upgrade/Upgrade.java
@@ -276,7 +276,18 @@
        "ds-cfg-log-file-permissions: 640",
        "ds-cfg-enabled: false"));
    register("2.5.0.8985",
        newAttributeTypes(INFO_UPGRADE_TASK_8985_1_SUMMARY.get(),
        "00-core.ldif", "emailAddress"),
        modifyConfigEntry(INFO_UPGRADE_TASK_8985_2_SUMMARY.get(),
        "&(ds-cfg-java-class=org.opends.server.extensions." +
        "SubjectAttributeToUserAttributeCertificateMapper)" +
        "(ds-cfg-subject-attribute-mapping=e:mail)",
        "delete:ds-cfg-subject-attribute-mapping",
        "ds-cfg-subject-attribute-mapping: e:mail",
        "-",
        "add:ds-cfg-subject-attribute-mapping",
        "ds-cfg-subject-attribute-mapping: emailAddress:mail"));
    /*
     * All upgrades will refresh the server configuration schema and generate
     * a new upgrade folder.