]> git.sur5r.net Git - openldap/blob - tests/data/test-dn.ldif
752900f87d6443e750a5b59ed473a3bc84e24148
[openldap] / tests / data / test-dn.ldif
1 # Regular DNs
2 dn: dc=net
3 objectClass: domain
4 dc: net
5 seeAlso:
6
7 dn: dc=example,dc=net
8 objectClass: domain
9 objectClass: domainRelatedObject
10 dc: example
11 associatedDomain: example.net
12
13 #  UID=jsmith,DC=example,DC=net                          [AoOn]
14 #  304631133011060A0992268993F22C64011916036E657431      [AoO]
15 #  173015060A0992268993F22C64011916076578616D706C65
16 #  31163014060A0992268993F22C64010113066A736D697468
17 dn: UID=jsmith,DC=example,DC=net
18 objectClass: inetOrgPerson
19 cn: J. Smith
20 sn: Smith
21 uid: jsmith
22 description: UID=jsmith,DC=example,DC=net
23
24 #  OU=Sales+CN=J. Smith,DC=example,DC=net                [AoOn]
25 #  304F31133011060A0992268993F22C64011916036E657431      [AoO]
26 #  173015060A0992268993F22C64011916076578616D706C65
27 #  311F300C060355040B130553616C6573300F060355040313
28 #  084A2E20536D697468
29 dn: OU=Sales+CN=J. Smith,DC=example,DC=net
30 objectClass: inetOrgPerson
31 cn: J. Smith
32 sn: Smith
33 ou: Sales
34 description: OU=Sales+CN=J. Smith,DC=example,DC=net
35
36 #  CN=John Smith\, III,DC=example,DC=net                 [AoOn]
37 #  304831133011060A0992268993F22C64011916036E657431      [AoO]
38 #  173015060A0992268993F22C64011916076578616D706C65
39 #  311830160603550403130F4A6F686E20536D6974682C2049
40 #  4949
41
42 #  CN=John Smith\2C III,DC=example,DC=net                [AoOn]
43 #  304831133011060A0992268993F22C64011916036E657431      [AoO]
44 #  173015060A0992268993F22C64011916076578616D706C65
45 #  311830160603550403130F4A6F686E20536D6974682C2049
46 #  4949
47 dn: CN=John Smith\, III,DC=example,DC=net
48 objectClass: inetOrgPerson
49 cn: John Smith, III
50 sn: Smith
51 seeAlso: CN=John Smith\2C III,DC=example,DC=net
52 description: CN=John Smith\, III,DC=example,DC=net
53 description: CN=John Smith\2C III,DC=example,DC=net
54
55 dn: OU=Sales\; Data\+Algorithms,DC=example,DC=net
56 objectClass: organizationalUnit
57 ou: Sales; Data+Algorithms
58 seeAlso: OU=Sales\3B Data\2BAlgorithms,DC=example,DC=net
59 description: OU=Sales\; Data\+Algorithms,DC=example,DC=net
60 description: OU=Sales\3B Data\2BAlgorithms,DC=example,DC=net
61
62 #  CN=Before\0dAfter,DC=example,DC=net                   [AoOn]
63 #  304531133011060A0992268993F22C64011916036E657431      [AoO]
64 #  173015060A0992268993F22C64011916076578616D706C65
65 #  3115301306035504030C0C4265666F72650D4166746572
66 dn: CN=Before\0dAfter,DC=example,DC=net
67 objectClass: groupOfNames
68 cn:: QmVmb3JlDUFmdGVy
69 member: CN=Before\0dAfter,DC=example,DC=net
70 description: CN=Before\0dAfter,DC=example,DC=net
71
72 #  CN=\23John Smith\20,DC=example,DC=net                 [AoOn]
73 #  304531133011060A0992268993F22C64011916036E657431      [AoO]
74 #  173015060A0992268993F22C64011916076578616D706C65
75 #  311530130603550403140C234A6F686E20536D69746820
76
77 #  CN=\#John Smith\ ,DC=example,DC=net                   [AoOn]
78 #  304531133011060A0992268993F22C64011916036E657431      [AoO]
79 #  173015060A0992268993F22C64011916076578616D706C65
80 #  311530130603550403140C234A6F686E20536D69746820
81 dn: CN=\23John Smith\20,DC=example,DC=net
82 objectClass: inetOrgPerson
83 cn:: I0pvaG4gU21pdGgg
84 sn: Smith
85 seeAlso: CN=\#John Smith\ ,DC=example,DC=net
86 description: CN=\23John Smith\20,DC=example,DC=net
87 description: CN=\#John Smith\ ,DC=example,DC=net
88
89 #  1.3.6.1.4.1.1466.0=#04024869,DC=example,DC=com        [AoOn]
90 #  304031133011060A0992268993F22C64011916036E657431      [AoO]
91 #  173015060A0992268993F22C64011916076578616D706C65
92 #  3110300E06082B060104018B3A0004024869
93 #  FIXME
94 dn: 1.3.6.1.4.1.1466.0=#04024869,DC=example,DC=com
95 objectClass: top
96
97 #  CN=Lu\C4\8Di\C4\87                                    [AoOn]
98 #  30123110300E06035504030C074C75C48D69C487              [AoO]
99 dn: CN=Lu\C4\8Di\C4\87
100 objectClass: inetOrgPerson
101 cn:: THXEjWnEhw==
102 sn:: THXEjWnEhw==
103 description: CN=Lu\C4\8Di\C4\87
104
105 #  1.1.1=    // empty value                              [AoO]
106 #  300A31083006060229011300                              [AoO]
107 #  FIXME
108 dn: 1.1.1=
109 objectClass: top
110
111 #Invalid DNs
112 #  // some implementations may be liberal in what they accept
113 #  // but should strict in what they produce.
114
115 #  uid;x-option=jsmith   // option                       [oOn]
116 dn: uid;x-option=jsmith
117 objectClass: inetOrgPerson
118 cn: J. Smith
119 sn: Smith
120 uid;x-option: jsmith
121
122 #  at_tr=jsmith          // invalid attribute type name  [AoOn]
123 dn: at_tr=jsmith
124 objectClass: top
125
126 #  -attr=jsmith          // invalid attribute type name  [AoOn]
127 dn: -attr=jsmith
128 objectClass: top
129
130 #  1..1=jsmith           // invalid numeric OID          [AoO]
131 dn: 1..1=jsmith
132 objectClass: top
133
134 #  1.1.=jsmith           // invalid numeric OID          [AoO]
135 dn: 1.1.=jsmith
136 objectClass: top
137
138 #  01.1=jsmith           // invalid numeric OID          [oO]
139 dn: 01.1=jsmith
140 objectClass: top
141
142 #  1.ff=jsmith           // invalid numeric OID          [AoOn]
143 dn: 1.ff=jsmith
144 objectClass: top
145
146 #  1.1.1=#GG             // invalid HEX form             [AoOn]
147 dn: 1.1.1=#GG
148 objectClass: top
149
150 #  1.1.1=#000            // invalid HEX form             [AoO]
151 dn: 1.1.1=#000
152 objectClass: top
153
154 #  1.1.1=#F              // invalid HEX form             [AoO]
155 dn: 1.1.1=#F
156 objectClass: top
157
158 #  1.1.1=#               // invalid HEX form             [AoO]
159 dn: 1.1.1=#
160 objectClass: top
161
162 #  UID=jsmith,,DC=example,DC=net  // extra comma         [AoOn]
163 dn: UID=jsmith,,DC=example,DC=net
164 objectClass: inetOrgPerson
165 cn: J. Smith
166 sn: Smith
167 uid: jsmith
168
169 #  UID=john,smith        // unescaped ,                  [AoOn]
170 dn: UID=john,smith
171 objectClass: inetOrgPerson
172 cn: J. Smith
173 sn: Smith
174 uid: john
175
176 #  UID=john+smith        // unescaped +                  [AoOn]
177 dn: UID=john+smith
178 objectClass: inetOrgPerson
179 cn: J. Smith
180 sn: Smith
181 uid: john
182
183 #  UID=john\?smith       // invalid escape of ? or unescaped \ [oOn]
184 dn: UID=john\?smith
185 objectClass: inetOrgPerson
186 cn: J. Smith
187 sn: Smith
188 uid: john?smith
189
190 #  UID=john\Fsmith       // invalid hex escape           [AoOn]
191 dn: UID=john\Fsmith
192 objectClass: inetOrgPerson
193 cn: J. Smith
194 sn: Smith
195
196 #  UID=john\GGsmith      // invalid hex escape           [oOn]
197 dn: UID=john\GGsmith
198 objectClass: inetOrgPerson
199 cn: J. Smith
200 sn: Smith
201
202
203 #The following strings are invalid for use in LDAPv3, but were
204 #legal in LDAPv2 (RFC 1779).  Some LDAPv3 implementations are
205 #liberal in accepting these but should not generate them.
206
207 #  " " // space, quote characters (") are not part of the string
208
209 #  OID.1.1=jsmith                    // invalid attribute type name
210 dn: OID.0.9.2342.19200300.100.1.1=jsmith
211 objectClass: inetOrgPerson
212 cn: J. Smith
213 sn: Smith
214 uid: jsmith
215 description: OID.0.9.2342.19200300.100.1.1=jsmith
216
217 dn: C=US
218 objectClass: country
219 c: US
220
221 dn: O=example, C=US
222 objectClass: organization
223 o: example
224
225 #  UID=jsmith, O=example, C=US       // spaces
226 #  UID=jsmith;O=example;C=US         // semi-colons
227 dn: UID=jsmith, O=example, C=US
228 objectClass: inetOrgPerson
229 cn: J. Smith
230 sn: Smith
231 uid: jsmith
232 seeAlso: UID=jsmith;O=example;C=US
233 description: UID=jsmith, O=example, C=US
234 description: UID=jsmith;O=example;C=US
235
236 #  <UID=jsmith,O=example,C=US>       // brackets         [AoOn]
237 dn: cn=LDAPv2,O=example,C=US
238 objectClass: groupOfNames
239 cn: LDAPv2
240 member: <UID=jsmith,O=example,C=US>
241 description: <UID=jsmith,O=example,C=US>
242
243 #  CN="John Smith",O=example,C=US    // quotes
244 dn: CN="John Smith",O=example,C=US
245 objectClass: inetOrgPerson
246 cn: John Smith
247 sn: Smith
248 description: CN="John Smith",O=example,C=US
249