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

neil_a_wilson
08.48.2007 0a513c7b8643393ae496393b422666ebef2efc2d
Update the MakeLDIF tool so that the random:telephone tag will generate
telephone numbers that include the country code so that they are more
compliant with the ITU-T E.123 specification.

OpenDS Issue Number: 1911
1 files modified
5 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/tools/makeldif/RandomTag.java 5 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/tools/makeldif/RandomTag.java
@@ -673,16 +673,17 @@
        break;
      case RANDOM_TYPE_TELEPHONE:
        buffer.append("+1 ");
        for (int i=0; i < 3; i++)
        {
          buffer.append(NUMERIC_CHARS[random.nextInt(NUMERIC_CHARS.length)]);
        }
        buffer.append('-');
        buffer.append(' ');
        for (int i=0; i < 3; i++)
        {
          buffer.append(NUMERIC_CHARS[random.nextInt(NUMERIC_CHARS.length)]);
        }
        buffer.append('-');
        buffer.append(' ');
        for (int i=0; i < 4; i++)
        {
          buffer.append(NUMERIC_CHARS[random.nextInt(NUMERIC_CHARS.length)]);