view test/javax/naming/module/src/test/test/StorePerson.ldap @ 13901:b2a69d66dc65

8142968: Module System implementation Summary: Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282 Reviewed-by: alanb, mchung, naoto, rriggs, psandoz, plevart, mullan, ascarpino, vinnie, prr, sherman, dfuchs, mhaupt Contributed-by: alan.bateman@oracle.com, alex.buckley@oracle.com, jonathan.gibbons@oracle.com, karen.kinnear@oracle.com, mandy.chung@oracle.com, mark.reinhold@oracle.com, chris.hegarty@oracle.com, alexandr.scherbatiy@oracle.com, amy.lu@oracle.com, calvin.cheung@oracle.com, daniel.fuchs@oracle.com, erik.joelsson@oracle.com, harold.seigel@oracle.com, jaroslav.bachorik@oracle.com, jean-francois.denise@oracle.com, jan.lahoda@oracle.com, james.laskey@oracle.com, lois.foltan@oracle.com, miroslav.kos@oracle.com, huaming.li@oracle.com, sean.mullan@oracle.com, naoto.sato@oracle.com, masayoshi.okutsu@oracle.com, peter.levart@gmail.com, philip.race@oracle.com, claes.redestad@oracle.com, sergey.bylokhov@oracle.com, alexandre.iline@oracle.com, volker.simonis@gmail.com, staffan.larsen@oracle.com, stuart.marks@oracle.com, semyon.sadetsky@oracle.com, serguei.spitsyn@oracle.com, sundararajan.athijegannathan@oracle.com, valerie.peng@oracle.com, vincent.x.ryan@oracle.com, weijun.wang@oracle.com, yuri.nesterenko@oracle.com, yekaterina.kantserova@oracle.com, alexander.kulyakhtin@oracle.com, felix.yang@oracle.com, andrei.eremeev@oracle.com, frank.yuan@oracle.com, sergei.pikalev@oracle.com, sibabrata.sahoo@oracle.com, tiantian.du@oracle.com, sha.jiang@oracle.com
author alanb
date Thu, 17 Mar 2016 19:04:16 +0000
parents
children
line wrap: on
line source
#
# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#

################################################################################
# Capture file for StorePerson.java
#
# NOTE: This hexadecimal dump of LDAP protocol messages was generated by
#       running the StorePerson application program against a real LDAP
#       server and setting the JNDI/LDAP environment property:
#       com.sun.jndi.ldap.trace.ber to activate LDAP message tracing.
#
#      (The ASN.1 annotations were generated separately by the dumpasn1
#       utility and added only for clarity.)
#
################################################################################

# LDAP BindRequest:
#
#   0   12: SEQUENCE {
#   2    1:   INTEGER 1
#   5    7:   [APPLICATION 0] {
#   7    1:     INTEGER 3
#  10    0:     OCTET STRING
#  12    0:     [0]
#         :     }
#         :   }
#
0000: 30 0C 02 01 01 60 07 02   01 03 04 00 80 00        0....`........

# LDAP BindResponse:
#
#   0   12: SEQUENCE {
#   2    1:   INTEGER 1
#   5    7:   [APPLICATION 1] {
#   7    1:     ENUMERATED 0
#  10    0:     OCTET STRING
#  12    0:     OCTET STRING
#         :     }
#         :   }
#
0000: 30 0C 02 01 01 61 07 0A   01 00 04 00 04 00        0....a........

# LDAP AddRequest:
#
#   0  183: SEQUENCE {
#   3    1:   INTEGER 2
#   6  148:   [APPLICATION 8] {
#   9   36:     OCTET STRING 'cn=John Smith,dc=ie,dc=oracle,dc=com'
#  47  108:     SEQUENCE {
#  49   26:       SEQUENCE {
#  51    4:         OCTET STRING 'mail'
#  57   18:         SET {
#  59   16:           OCTET STRING 'jsmith@smith.com'
#         :           }
#         :         }
#  77   43:       SEQUENCE {
#  79   11:         OCTET STRING 'objectClass'
#  92   28:         SET {
#  94    3:           OCTET STRING 'top'
#  99    6:           OCTET STRING 'person'
# 107   13:           OCTET STRING 'inetOrgPerson'
#         :           }
#         :         }
# 122   13:       SEQUENCE {
# 124    2:         OCTET STRING 73 6E
# 128    7:         SET {
# 130    5:           OCTET STRING 'Smith'
#         :           }
#         :         }
# 137   18:       SEQUENCE {
# 139    2:         OCTET STRING 63 6E
# 143   12:         SET {
# 145   10:           OCTET STRING 'John Smith'
#         :           }
#         :         }
#         :       }
#         :     }
# 157   27:   [0] {
# 159   25:     SEQUENCE {
# 161   23:       OCTET STRING '2.16.840.1.113730.3.4.2'
#         :       }
#         :     }
#         :   }
#
0000: 30 81 B7 02 01 02 68 81   94 04 24 63 6E 3D 4A 6F  0.....h...$cn=Jo
0010: 68 6E 20 53 6D 69 74 68   2C 64 63 3D 69 65 2C 64  hn Smith,dc=ie,d
0020: 63 3D 6F 72 61 63 6C 65   2C 64 63 3D 63 6F 6D 30  c=oracle,dc=com0
0030: 6C 30 1A 04 04 6D 61 69   6C 31 12 04 10 6A 73 6D  l0...mail1...jsm
0040: 69 74 68 40 73 6D 69 74   68 2E 63 6F 6D 30 2B 04  ith@smith.com0+.
0050: 0B 6F 62 6A 65 63 74 43   6C 61 73 73 31 1C 04 03  .objectClass1...
0060: 74 6F 70 04 06 70 65 72   73 6F 6E 04 0D 69 6E 65  top..person..ine
0070: 74 4F 72 67 50 65 72 73   6F 6E 30 0D 04 02 73 6E  tOrgPerson0...sn
0080: 31 07 04 05 53 6D 69 74   68 30 12 04 02 63 6E 31  1...Smith0...cn1
0090: 0C 04 0A 4A 6F 68 6E 20   53 6D 69 74 68 A0 1B 30  ...John Smith..0
00A0: 19 04 17 32 2E 31 36 2E   38 34 30 2E 31 2E 31 31  ...2.16.840.1.11
00B0: 33 37 33 30 2E 33 2E 34   2E 32                    3730.3.4.2

# LDAP AddResponse:
#
#   0   12: SEQUENCE {
#   2    1:   INTEGER 2
#   5    7:   [APPLICATION 9] {
#   7    1:     ENUMERATED 0
#  10    0:     OCTET STRING
#  12    0:     OCTET STRING
#         :     }
#         :   }
#
0000: 30 0C 02 01 02 69 07 0A   01 00 04 00 04 00        0....i........

# LDAP AddRequest:
#
#   0  183: SEQUENCE {
#   3    1:   INTEGER 3
#   6  148:   [APPLICATION 8] {
#   9   36:     OCTET STRING 'cn=Jill Smyth,dc=ie,dc=oracle,dc=com'
#  47  108:     SEQUENCE {
#  49   26:       SEQUENCE {
#  51    4:         OCTET STRING 'mail'
#  57   18:         SET {
#  59   16:           OCTET STRING 'jsmyth@smith.com'
#         :           }
#         :         }
#  77   43:       SEQUENCE {
#  79   11:         OCTET STRING 'objectClass'
#  92   28:         SET {
#  94    3:           OCTET STRING 'top'
#  99    6:           OCTET STRING 'person'
# 107   13:           OCTET STRING 'inetOrgPerson'
#         :           }
#         :         }
# 122   13:       SEQUENCE {
# 124    2:         OCTET STRING 73 6E
# 128    7:         SET {
# 130    5:           OCTET STRING 'Smyth'
#         :           }
#         :         }
# 137   18:       SEQUENCE {
# 139    2:         OCTET STRING 63 6E
# 143   12:         SET {
# 145   10:           OCTET STRING 'Jill Smyth'
#         :           }
#         :         }
#         :       }
#         :     }
# 157   27:   [0] {
# 159   25:     SEQUENCE {
# 161   23:       OCTET STRING '2.16.840.1.113730.3.4.2'
#         :       }
#         :     }
#         :   }
#
0000: 30 81 B7 02 01 03 68 81   94 04 24 63 6E 3D 4A 69  0.....h...$cn=Ji
0010: 6C 6C 20 53 6D 79 74 68   2C 64 63 3D 69 65 2C 64  ll Smyth,dc=ie,d
0020: 63 3D 6F 72 61 63 6C 65   2C 64 63 3D 63 6F 6D 30  c=oracle,dc=com0
0030: 6C 30 1A 04 04 6D 61 69   6C 31 12 04 10 6A 73 6D  l0...mail1...jsm
0040: 79 74 68 40 73 6D 69 74   68 2E 63 6F 6D 30 2B 04  yth@smith.com0+.
0050: 0B 6F 62 6A 65 63 74 43   6C 61 73 73 31 1C 04 03  .objectClass1...
0060: 74 6F 70 04 06 70 65 72   73 6F 6E 04 0D 69 6E 65  top..person..ine
0070: 74 4F 72 67 50 65 72 73   6F 6E 30 0D 04 02 73 6E  tOrgPerson0...sn
0080: 31 07 04 05 53 6D 79 74   68 30 12 04 02 63 6E 31  1...Smyth0...cn1
0090: 0C 04 0A 4A 69 6C 6C 20   53 6D 79 74 68 A0 1B 30  ...Jill Smyth..0
00A0: 19 04 17 32 2E 31 36 2E   38 34 30 2E 31 2E 31 31  ...2.16.840.1.11
00B0: 33 37 33 30 2E 33 2E 34   2E 32                    3730.3.4.2

# LDAP AddResponse:
#
#   0   12: SEQUENCE {
#   2    1:   INTEGER 3
#   5    7:   [APPLICATION 9] {
#   7    1:     ENUMERATED 0
#  10    0:     OCTET STRING
#  12    0:     OCTET STRING
#         :     }
#         :   }
#
0000: 30 0C 02 01 03 69 07 0A   01 00 04 00 04 00        0....i........

# LDAP SearchRequest:
#
#   0  102: SEQUENCE {
#   2    1:   INTEGER 4
#   5   68:   [APPLICATION 3] {
#   7   36:     OCTET STRING 'cn=John Smith,dc=ie,dc=oracle,dc=com'
#  45    1:     ENUMERATED 0
#  48    1:     ENUMERATED 3
#  51    1:     INTEGER 0
#  54    1:     INTEGER 0
#  57    1:     BOOLEAN FALSE
#  60   11:     [7] 'objectClass'
#  73    0:     SEQUENCE {}
#         :     }
#  75   27:   [0] {
#  77   25:     SEQUENCE {
#  79   23:       OCTET STRING '2.16.840.1.113730.3.4.2'
#         :       }
#         :     }
#         :   }
#
0000: 30 66 02 01 04 63 44 04   24 63 6E 3D 4A 6F 68 6E  0f...cD.$cn=John
0010: 20 53 6D 69 74 68 2C 64   63 3D 69 65 2C 64 63 3D   Smith,dc=ie,dc=
0020: 6F 72 61 63 6C 65 2C 64   63 3D 63 6F 6D 0A 01 00  oracle,dc=com...
0030: 0A 01 03 02 01 00 02 01   00 01 01 00 87 0B 6F 62  ..............ob
0040: 6A 65 63 74 43 6C 61 73   73 30 00 A0 1B 30 19 04  jectClass0...0..
0050: 17 32 2E 31 36 2E 38 34   30 2E 31 2E 31 31 33 37  .2.16.840.1.1137
0060: 33 30 2E 33 2E 34 2E 32                            30.3.4.2

# LDAP SearchResultEntry:
#
#   0  154: SEQUENCE {
#   3    1:   INTEGER 4
#   6  148:   [APPLICATION 4] {
#   9   36:     OCTET STRING 'cn=John Smith,dc=ie,dc=oracle,dc=com'
#  47  108:     SEQUENCE {
#  49   26:       SEQUENCE {
#  51    4:         OCTET STRING 'mail'
#  57   18:         SET {
#  59   16:           OCTET STRING 'jsmith@smith.com'
#         :           }
#         :         }
#  77   43:       SEQUENCE {
#  79   11:         OCTET STRING 'objectClass'
#  92   28:         SET {
#  94    3:           OCTET STRING 'top'
#  99    6:           OCTET STRING 'person'
# 107   13:           OCTET STRING 'inetOrgPerson'
#         :           }
#         :         }
# 122   13:       SEQUENCE {
# 124    2:         OCTET STRING 73 6E
# 128    7:         SET {
# 130    5:           OCTET STRING 'Smith'
#         :           }
#         :         }
# 137   18:       SEQUENCE {
# 139    2:         OCTET STRING 63 6E
# 143   12:         SET {
# 145   10:           OCTET STRING 'John Smith'
#         :           }
#         :         }
#         :       }
#         :     }
#         :   }
#
0000: 30 81 9A 02 01 04 64 81   94 04 24 63 6E 3D 4A 6F  0.....d...$cn=Jo
0010: 68 6E 20 53 6D 69 74 68   2C 64 63 3D 69 65 2C 64  hn Smith,dc=ie,d
0020: 63 3D 6F 72 61 63 6C 65   2C 64 63 3D 63 6F 6D 30  c=oracle,dc=com0
0030: 6C 30 1A 04 04 6D 61 69   6C 31 12 04 10 6A 73 6D  l0...mail1...jsm
0040: 69 74 68 40 73 6D 69 74   68 2E 63 6F 6D 30 2B 04  ith@smith.com0+.
0050: 0B 6F 62 6A 65 63 74 43   6C 61 73 73 31 1C 04 03  .objectClass1...
0060: 74 6F 70 04 06 70 65 72   73 6F 6E 04 0D 69 6E 65  top..person..ine
0070: 74 4F 72 67 50 65 72 73   6F 6E 30 0D 04 02 73 6E  tOrgPerson0...sn
0080: 31 07 04 05 53 6D 69 74   68 30 12 04 02 63 6E 31  1...Smith0...cn1
0090: 0C 04 0A 4A 6F 68 6E 20   53 6D 69 74 68           ...John Smith

# LDAP SearchResultDone:
#
#   0   12: SEQUENCE {
#   2    1:   INTEGER 4
#   5    7:   [APPLICATION 5] {
#   7    1:     ENUMERATED 0
#  10    0:     OCTET STRING
#  12    0:     OCTET STRING
#         :     }
#         :   }
#
0000: 30 0C 02 01 04 65 07 0A   01 00 04 00 04 00        0....e........

# LDAP SearchRequest:
#
#   0  102: SEQUENCE {
#   2    1:   INTEGER 5
#   5   68:   [APPLICATION 3] {
#   7   36:     OCTET STRING 'cn=Jill Smyth,dc=ie,dc=oracle,dc=com'
#  45    1:     ENUMERATED 0
#  48    1:     ENUMERATED 3
#  51    1:     INTEGER 0
#  54    1:     INTEGER 0
#  57    1:     BOOLEAN FALSE
#  60   11:     [7] 'objectClass'
#  73    0:     SEQUENCE {}
#         :     }
#  75   27:   [0] {
#  77   25:     SEQUENCE {
#  79   23:       OCTET STRING '2.16.840.1.113730.3.4.2'
#         :       }
#         :     }
#         :   }
#
0000: 30 66 02 01 05 63 44 04   24 63 6E 3D 4A 69 6C 6C  0f...cD.$cn=Jill
0010: 20 53 6D 79 74 68 2C 64   63 3D 69 65 2C 64 63 3D   Smyth,dc=ie,dc=
0020: 6F 72 61 63 6C 65 2C 64   63 3D 63 6F 6D 0A 01 00  oracle,dc=com...
0030: 0A 01 03 02 01 00 02 01   00 01 01 00 87 0B 6F 62  ..............ob
0040: 6A 65 63 74 43 6C 61 73   73 30 00 A0 1B 30 19 04  jectClass0...0..
0050: 17 32 2E 31 36 2E 38 34   30 2E 31 2E 31 31 33 37  .2.16.840.1.1137
0060: 33 30 2E 33 2E 34 2E 32                            30.3.4.2

# LDAP SearchResultEntry:
#
#   0  154: SEQUENCE {
#   3    1:   INTEGER 5
#   6  148:   [APPLICATION 4] {
#   9   36:     OCTET STRING 'cn=Jill Smyth,dc=ie,dc=oracle,dc=com'
#  47  108:     SEQUENCE {
#  49   26:       SEQUENCE {
#  51    4:         OCTET STRING 'mail'
#  57   18:         SET {
#  59   16:           OCTET STRING 'jsmyth@smith.com'
#         :           }
#         :         }
#  77   43:       SEQUENCE {
#  79   11:         OCTET STRING 'objectClass'
#  92   28:         SET {
#  94    3:           OCTET STRING 'top'
#  99    6:           OCTET STRING 'person'
# 107   13:           OCTET STRING 'inetOrgPerson'
#         :           }
#         :         }
# 122   13:       SEQUENCE {
# 124    2:         OCTET STRING 73 6E
# 128    7:         SET {
# 130    5:           OCTET STRING 'Smyth'
#         :           }
#         :         }
# 137   18:       SEQUENCE {
# 139    2:         OCTET STRING 63 6E
# 143   12:         SET {
# 145   10:           OCTET STRING 'Jill Smyth'
#         :           }
#         :         }
#         :       }
#         :     }
#         :   }
#
0000: 30 81 9A 02 01 05 64 81   94 04 24 63 6E 3D 4A 69  0.....d...$cn=Ji
0010: 6C 6C 20 53 6D 79 74 68   2C 64 63 3D 69 65 2C 64  ll Smyth,dc=ie,d
0020: 63 3D 6F 72 61 63 6C 65   2C 64 63 3D 63 6F 6D 30  c=oracle,dc=com0
0030: 6C 30 1A 04 04 6D 61 69   6C 31 12 04 10 6A 73 6D  l0...mail1...jsm
0040: 79 74 68 40 73 6D 69 74   68 2E 63 6F 6D 30 2B 04  yth@smith.com0+.
0050: 0B 6F 62 6A 65 63 74 43   6C 61 73 73 31 1C 04 03  .objectClass1...
0060: 74 6F 70 04 06 70 65 72   73 6F 6E 04 0D 69 6E 65  top..person..ine
0070: 74 4F 72 67 50 65 72 73   6F 6E 30 0D 04 02 73 6E  tOrgPerson0...sn
0080: 31 07 04 05 53 6D 79 74   68 30 12 04 02 63 6E 31  1...Smyth0...cn1
0090: 0C 04 0A 4A 69 6C 6C 20   53 6D 79 74 68           ...Jill Smyth

# LDAP SearchResultDone:
#
#   0   12: SEQUENCE {
#   2    1:   INTEGER 5
#   5    7:   [APPLICATION 5] {
#   7    1:     ENUMERATED 0
#  10    0:     OCTET STRING
#  12    0:     OCTET STRING
#         :     }
#         :   }
#
0000: 30 0C 02 01 05 65 07 0A   01 00 04 00 04 00        0....e........

# LDAP DeleteRequest:
#
#   0   70: SEQUENCE {
#   2    1:   INTEGER 6
#   5   36:   [APPLICATION 10] 'cn=John Smith,dc=ie,dc=oracle,dc=com'
#  43   27:   [0] {
#  45   25:     SEQUENCE {
#  47   23:       OCTET STRING '2.16.840.1.113730.3.4.2'
#         :       }
#         :     }
#         :   }
#
0000: 30 46 02 01 06 4A 24 63   6E 3D 4A 6F 68 6E 20 53  0F...J$cn=John S
0010: 6D 69 74 68 2C 64 63 3D   69 65 2C 64 63 3D 6F 72  mith,dc=ie,dc=or
0020: 61 63 6C 65 2C 64 63 3D   63 6F 6D A0 1B 30 19 04  acle,dc=com..0..
0030: 17 32 2E 31 36 2E 38 34   30 2E 31 2E 31 31 33 37  .2.16.840.1.1137
0040: 33 30 2E 33 2E 34 2E 32                            30.3.4.2

# LDAP DeleteResponse:
#
#   0   12: SEQUENCE {
#   2    1:   INTEGER 6
#   5    7:   [APPLICATION 11] {
#   7    1:     ENUMERATED 0
#  10    0:     OCTET STRING
#  12    0:     OCTET STRING
#         :     }
#         :   }
#
0000: 30 0C 02 01 06 6B 07 0A   01 00 04 00 04 00        0....k........

# LDAP DeleteRequest:
#
#   0   70: SEQUENCE {
#   2    1:   INTEGER 7
#   5   36:   [APPLICATION 10] 'cn=Jill Smyth,dc=ie,dc=oracle,dc=com'
#  43   27:   [0] {
#  45   25:     SEQUENCE {
#  47   23:       OCTET STRING '2.16.840.1.113730.3.4.2'
#         :       }
#         :     }
#         :   }
#
0000: 30 46 02 01 07 4A 24 63   6E 3D 4A 69 6C 6C 20 53  0F...J$cn=Jill S
0010: 6D 79 74 68 2C 64 63 3D   69 65 2C 64 63 3D 6F 72  myth,dc=ie,dc=or
0020: 61 63 6C 65 2C 64 63 3D   63 6F 6D A0 1B 30 19 04  acle,dc=com..0..
0030: 17 32 2E 31 36 2E 38 34   30 2E 31 2E 31 31 33 37  .2.16.840.1.1137
0040: 33 30 2E 33 2E 34 2E 32                            30.3.4.2

# LDAP DeleteResponse:
#
#   0   12: SEQUENCE {
#   2    1:   INTEGER 7
#   5    7:   [APPLICATION 11] {
#   7    1:     ENUMERATED 0
#  10    0:     OCTET STRING
#  12    0:     OCTET STRING
#         :     }
#         :   }
#
0000: 30 0C 02 01 07 6B 07 0A   01 00 04 00 04 00        0....k........

# LDAP UnbindRequest:
#
#   0   34: SEQUENCE {
#   2    1:   INTEGER 8
#   5    0:   [APPLICATION 2]
#   7   27:   [0] {
#   9   25:     SEQUENCE {
#  11   23:       OCTET STRING '2.16.840.1.113730.3.4.2'
#         :       }
#         :     }
#         :   }
#
0000: 30 22 02 01 08 42 00 A0   1B 30 19 04 17 32 2E 31  0"...B...0...2.1
0010: 36 2E 38 34 30 2E 31 2E   31 31 33 37 33 30 2E 33  6.840.1.113730.3
0020: 2E 34 2E 32                                        .4.2