1# Test 1, list two unrelated entries
2dn: cn=Mark Elliot,ou=Alumni Association,ou=People,dc=example,dc=com
3objectClass: OpenLDAPperson
4cn: Mark Elliot
5cn: Mark A Elliot
6sn: Elliot
7uid: melliot
8postalAddress: Alumni Association $ 111 Maple St $ Anytown, MI 48109
9seeAlso: cn=All Staff,ou=Groups,dc=example,dc=com
10homePostalAddress: 199 Outer Drive $ Ypsilanti, MI 48198
11homePhone: +1 313 555 0388
12drink: Gasoline
13title: Director, UM Alumni Association
14mail: melliot@mail.alumni.example.com
15pager: +1 313 555 7671
16facsimileTelephoneNumber: +1 313 555 7762
17telephoneNumber: +1 313 555 4177
18
19dn: cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc
20 =com
21objectClass: OpenLDAPperson
22cn: Bjorn Jensen
23cn: Biiff Jensen
24sn: Jensen
25uid: bjorn
26seeAlso: cn=All Staff,ou=Groups,dc=example,dc=com
27userPassword:: Ympvcm4=
28homePostalAddress: 19923 Seven Mile Rd. $ South Lyon, MI 49999
29drink: Iced Tea
30description: Hiker, biker
31title: Director, Embedded Systems
32postalAddress: Info Tech Division $ 535 W. William St. $ Anytown, MI 48103
33mail: bjorn@mailgw.example.com
34homePhone: +1 313 555 5444
35pager: +1 313 555 4474
36facsimileTelephoneNumber: +1 313 555 2177
37telephoneNumber: +1 313 555 0355
38
39
40# Test 2, list some of the variant entries, checking that attributes have been populated
41dn: ou=Groups,dc=example,dc=com
42objectClass: organizationalUnit
43ou: Groups
44st: Alumni Association
45
46dn: ou=People,dc=example,dc=com
47objectClass: organizationalUnit
48objectClass: extensibleObject
49ou: People
50uidNumber: 0
51gidNumber: 0
52description: The Example, Inc. at Anytown
53
54dn: cn=Manager,dc=example,dc=com
55objectClass: person
56cn: Manager
57cn: Directory Manager
58cn: Dir Man
59sn: Manager
60description: Manager of the directory
61userPassword:: c2VjcmV0
62
63
64# Return $BASEDN, location is rewritten to end
65dn: dc=example,dc=com
66objectClass: top
67objectClass: organization
68objectClass: domainRelatedObject
69objectClass: dcObject
70dc: example
71st: Michigan
72o: Example, Inc.
73o: EX
74o: Ex.
75description: The Example, Inc. at Anytown
76postalAddress: Example, Inc. $ 535 W. William St. $ Anytown, MI 48109 $ US
77telephoneNumber: +1 313 555 1817
78associatedDomain: example.com
79l: Anytown, Michigan
80
81
82# Make sure only the first regex applies
83dn: cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc
84 =com
85objectClass: OpenLDAPperson
86cn: Bjorn Jensen
87cn: Biiff Jensen
88sn: Jensen
89uid: bjorn
90seeAlso: cn=All Staff,ou=Groups,dc=example,dc=com
91userPassword:: Ympvcm4=
92homePostalAddress: 19923 Seven Mile Rd. $ South Lyon, MI 49999
93drink: Iced Tea
94description: Hiker, biker
95postalAddress: Info Tech Division $ 535 W. William St. $ Anytown, MI 48103
96mail: bjorn@mailgw.example.com
97homePhone: +1 313 555 5444
98pager: +1 313 555 4474
99facsimileTelephoneNumber: +1 313 555 2177
100telephoneNumber: +1 313 555 0355
101title: Hiker, biker
102ou: Information Technology Division
103
104
105# Exercise the last regex
106dn: cn=ITD Staff,ou=Groups,dc=example,dc=com
107owner: cn=Manager,dc=example,dc=com
108description: All ITD Staff
109cn: ITD Staff
110objectClass: groupOfUniqueNames
111uniqueMember: cn=Manager,dc=example,dc=com
112uniqueMember: cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=
113 example,dc=com
114uniqueMember: cn=James A Jones 2,ou=Information Technology Division,ou=People,
115 dc=example,dc=com
116uniqueMember: cn=John Doe,ou=Information Technology Division,ou=People,dc=exam
117 ple,dc=com
118l: Anytown, Michigan
119
120
121# Test 3, check filters pick up the new data
122dn: ou=Groups,dc=example,dc=com
123st: Alumni Association
124
125