-
Notifications
You must be signed in to change notification settings - Fork 2
/
types.go
43 lines (38 loc) · 1.37 KB
/
types.go
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
// Copyright 2020-2024 NGR Softlab
package ldapper
// UserInfo User info from AD struct.
type UserInfo struct {
CN interface{} `json:"cn"` // full name
Department interface{} `json:"department"`
Mobile interface{} `json:"mobile"` // mobile phone
Mail interface{} `json:"mail"` // email
Title interface{} `json:"title"` // user title
Photo interface{} `json:"thumbnailPhoto"` // bad photo from AD
Company interface{} `json:"company"`
Address interface{} `json:"address"`
City interface{} `json:"city"`
Index interface{} `json:"index"`
Country interface{} `json:"country"`
Room interface{} `json:"room"`
Phone interface{} `json:"phone"`
Manager interface{} `json:"manager"`
}
// ImportInfo Short info for showing.
type ImportInfo struct {
Name interface{} `json:"name"` // full name (= cn)
Login interface{} `json:"login"`
Mail interface{} `json:"mail"`
Title interface{} `json:"title"`
Department interface{} `json:"department"`
}
// GroupInfo Department obj from AD struct.
type GroupInfo struct {
Name string `json:"name"`
DName string `json:"distinguishedName"` // long department name
Ou string `json:"ou"`
Has []GroupInfo `json:"has"` // list of subdirs (group children)
}
// ADStruct Full AD struct.
type ADStruct struct {
AD []GroupInfo `json:"ad_map"`
}