-
Notifications
You must be signed in to change notification settings - Fork 2
/
sample.ldif
152 lines (135 loc) · 3.96 KB
/
sample.ldif
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# ldapadd -x -D "cn=admin,dc=example,dc=com" -w admin -H ldap:// -f sample.ldif
#
# LDAP Base
#
dn: ou=system,dc=example,dc=com
objectClass: extensibleObject
objectClass: organizationalUnit
objectClass: top
#
# Users and Groups Base
#
dn: ou=users,ou=system,dc=example,dc=com
objectClass: organizationalUnit
objectClass: top
dn: ou=groups,ou=system,dc=example,dc=com
objectClass: organizationalUnit
objectClass: top
#
# User Tenants Base
#
dn: ou=tenant1,ou=users,ou=system,dc=example,dc=com
objectClass: top
objectClass: organizationalUnit
dn: ou=tenant2,ou=users,ou=system,dc=example,dc=com
objectClass: top
objectClass: organizationalUnit
#
# Group Tenants Base
#
dn: ou=tenant1,ou=groups,ou=system,dc=example,dc=com
objectClass: top
objectClass: organizationalUnit
dn: ou=tenant2,ou=groups,ou=system,dc=example,dc=com
objectClass: top
objectClass: organizationalUnit
#
# Users for Tenant1
#
dn: cn=Brain Collins,ou=tenant1,ou=users,ou=system,dc=example,dc=com
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
givenName: Brain
sn: Collins
mail: [email protected]
uid: brain
userPassword:: e1NTSEF9UU1jdzNoa3Y5anM5bzRWSkMxQUJvckIrOURYWnExdFZ4WllXZHc9PQ==
organizationName: tenant1
dn: cn=Peter John,ou=tenant1,ou=users,ou=system,dc=example,dc=com
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
givenName: Peter
sn: John
mail: [email protected]
uid: peter
userPassword:: e1NTSEF9U1JJR0NGaXVlQTNWWEp6N1F4ODRlRTBBMlJLbURyaTM0cXNWSFE9PQ==
organizationName: tenant1
#
# Users for Tenant2
#
dn: cn=Maria Velasquez,ou=tenant2,ou=users,ou=system,dc=example,dc=com
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
givenName: Maria
sn: Velasquez
mail: [email protected]
uid: maria
userPassword:: e1NTSEF9M3RkeVBoK2RNNkdlUm5MNGwvaXBmNFZ4bFhobm41VnV0NXhad1E9PQ==
organizationName: tenant2
dn: cn=Sara Lee,ou=tenant2,ou=users,ou=system,dc=example,dc=com
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
givenName:Sara
sn: Lee
mail: [email protected]
uid: sara
userPassword:: e1NTSEF9aWlRc2Y2TkpLek14T2Y5elc4T29JT2RUMVdsd2JkazFZaFp0R2c9PQ==
organizationName: tenant2
#
# Shared Groups
#
dn: cn=finance,ou=groups,ou=system,dc=example,dc=com
objectClass: top
objectClass: groupOfUniqueNames
organizationName: pentaho
uniqueMember: cn=Brain Collins,ou=tenant1,ou=users,ou=system,dc=example,dc=com
uniqueMember: cn=Maria Velasquez,ou=tenant2,ou=users,ou=system,dc=example,dc=com
dn: cn=operational,ou=groups,ou=system,dc=example,dc=com
objectClass: top
objectClass: groupOfUniqueNames
organizationName: pentaho
uniqueMember: cn=Sara Lee,ou=tenant2,ou=users,ou=system,dc=example,dc=com
uniqueMember: cn=Peter John,ou=tenant1,ou=users,ou=system,dc=example,dc=com
#
# Tenant1 Groups
#
dn: cn=marketing-t1,ou=tenant1,ou=groups,ou=system,dc=example,dc=com
objectClass: top
objectClass: groupOfUniqueNames
organizationName: tenant1
uniqueMember: cn=Brain Collins,ou=tenant1,ou=users,ou=system,dc=example,dc=com
uniqueMember: cn=Peter John,ou=tenant1,ou=users,ou=system,dc=example,dc=com
#
# Tenant2 Groups
#
dn: cn=marketing-t2,ou=tenant2,ou=groups,ou=system,dc=example,dc=com
objectClass: top
objectClass: groupOfUniqueNames
organizationName: tenant2
uniqueMember: cn=Sara Lee,ou=tenant2,ou=users,ou=system,dc=example,dc=com
uniqueMember: cn=Maria Velasquez,ou=tenant2,ou=users,ou=system,dc=example,dc=com
#
# User Administrator and Administrator Group for the Pentaho
#
dn: cn=PentahoAdmin,ou=users,ou=system,dc=example,dc=com
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
sn: Adminstrator
uid: admin
userPassword:: e1NTSEF9aWlRc2Y2TkpLek14T2Y5elc4T29JT2RUMVdsd2JkazFZaFp0R2c9PQ==
organizationName: pentaho
dn: cn=Administrator,ou=groups,ou=system,dc=example,dc=com
objectClass: top
objectClass: groupOfUniqueNames
organizationName: pentaho
uniqueMember: cn=PentahoAdmin,ou=users,ou=system,dc=example,dc=com