This repository has been archived by the owner on Apr 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpeople.js
117 lines (116 loc) · 3.55 KB
/
people.js
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
function createLdapUser (username, name, avatar,
managerUid, title, location = {}, employeeNumber, assistant) {
const names = name.split(' ');
return {
dn: `uid=${username}, ou=people, o=grommet.io`,
attributes: {
cn: name,
uid: username,
givenName: names[0],
sn: names[names.length - 1],
pictureThumbnailURI: `${avatar}?s=80`,
pictureURI: `${avatar}?s=250`,
workName: location.companyName || 'Grommet HQ',
workLocation: `lid=${location.buildName || "PAL20"}, ou=locations, o=grommet.io`,
workCity: location.city || "Palo Alto",
workStreet: location.street || "3000 Hanover St.",
workPostalCode: location.postalCode || "94304-1112",
workState: location.state || "California",
workCountry: location.country || "United States",
manager: managerUid,
title: title,
telephoneNumber: '+1 (555) 555-5555',
objectclass: 'organizationalPerson',
employeeNumber: employeeNumber,
assistant: assistant
}
};
}
export default {
"alansouzati": createLdapUser(
'Alan Souza',
'https://s.gravatar.com/avatar/eea1072044af57fa127c0f34e2410f6b',
'[email protected], ou=people, o=grommet.io',
'UI/UX Developer',
undefined,
'276456'
),
"oscarlinde": createLdapUser(
'Oscar Linde',
'https://s.gravatar.com/avatar/aed13290d9c2da5969da278488b46a47',
'[email protected], ou=people, o=grommet.io',
'Software Engineer',
{
companyName: 'Tedsys',
buildName: 'LUNDE01',
city: 'Lund',
state: 'Scania',
street: 'Nöbbelövs torg 2',
postalCode: '226 52',
country: 'Sweden'
},
'276456'
),
"tracybarmore": createLdapUser(
'Tracy Barmore',
'https://s.gravatar.com/avatar/4ec9c3a91da89f278e4482811caad7f3',
'[email protected], ou=people, o=grommet.io',
'Experience Designer',
undefined,
'276444'
),
"ericsoderberg": createLdapUser(
'Eric Soderberg',
'https://s.gravatar.com/avatar/99020cae7ff399a4fbea19c0634f77c3',
'[email protected], ou=people, o=grommet.io',
'Vice President, Engineering Office',
undefined,
'287364'
),
"chriscarlozzi": createLdapUser(
'Chris Carlozzi',
'https://s.gravatar.com/avatar/e3e87c5215378c50fb7e8a4611c6a94d',
'[email protected], ou=people, o=grommet.io',
'Vice President, Design Office',
undefined,
'342322'
),
"bryanjacquot": createLdapUser(
'Bryan Jacquot',
'https://s.gravatar.com/avatar/10d15019166606cfed23846a7f902660',
'',
'CEO',
{
buildName: 'FTC06',
city: 'Fort Collins',
state: 'Colorado',
street: '3404 E Harmony Rd.',
postalCode: '80528-9544'
},
'124243',
'[email protected], ou=people, o=grommet.io'
),
"randyksar": createLdapUser(
'Randy Ksar',
'https://s.gravatar.com/avatar/a2ee7bd9ea83d558f913e9371a1f0395',
'[email protected], ou=people, o=grommet.io',
'Vice President, Marketing Office',
{
companyName: 'Voce Communications',
buildName: 'VOCE01',
city: 'Sunnyvale',
state: 'California',
street: '298 South Sunnyvale Road Suite 100.',
postalCode: '94086'
},
'000002',
'[email protected], ou=people, o=grommet.io'
)
};