Documentation
¶
Index ¶
- func GetBTR(val string) string
- func GetBTRUsersFromGroup(ldapURL, login, password, baseDN, groupCN string, recursionLevel, verbose int) ([]string, error)
- func GetGroups(ldapURL, login, password, baseDN string) ([]string, error)
- func GetUsers(ldapURL, login, password, baseDN string) ([]string, error)
- func Search(ldapURL, login, password, baseDN, user string, attributes []string) (*ldap.SearchResult, error)
- func SearchBy(ldapURL, login, password, baseDN, user, method string, attributes []string) (*ldap.SearchResult, error)
- type Cache
- type Entry
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBTRUsersFromGroup ¶ added in v1.0.1
func GetBTRUsersFromGroup( ldapURL, login, password, baseDN, groupCN string, recursionLevel, verbose int, ) ([]string, error)
GetBTRUsersFromGroup fetch BTR user information
Types ¶
type Cache ¶
Cache represent LDAP cache
type Entry ¶
type Entry struct {
DN string
Name string
Email string
Uid string
UidNumber int
GidNumber int
Groups []string
Btrs []string
Beamlines []string
Expire time.Time
Foxdens []string
}
Entry represents LDAP user entry
type UserInfo ¶ added in v1.2.2
type UserInfo struct {
DN string `json:"DN"`
Name string `json:"Name"`
Email string `json:"Email"`
Uid string `json:"Uid"`
UidNumber int `json:"UidNumber"`
GidNumber int `json:"GidNumber"`
Groups []string `json:"Groups"`
Btrs []string `json:"Btrs"`
Beamlines []string `json:"Beamlines"`
Expire time.Time `json:"Expire"`
Foxdens []string `json:"Foxdens"`
}
UserInfo represents the structure returned by the user service.
Click to show internal directories.
Click to hide internal directories.