This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2021-11-05 09:37:30 +00:00
|
|
|
package constants
|
|
|
|
|
2021-12-02 14:28:58 +00:00
|
|
|
const (
|
|
|
|
OCTop = "top"
|
|
|
|
OCDomain = "domain"
|
|
|
|
OCNSContainer = "nsContainer"
|
|
|
|
)
|
|
|
|
|
2021-11-05 09:37:30 +00:00
|
|
|
const (
|
|
|
|
OCGroup = "group"
|
|
|
|
OCGroupOfUniqueNames = "groupOfUniqueNames"
|
|
|
|
OCAKGroup = "goauthentik.io/ldap/group"
|
|
|
|
OCAKVirtualGroup = "goauthentik.io/ldap/virtual-group"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
OCUser = "user"
|
|
|
|
OCOrgPerson = "organizationalPerson"
|
|
|
|
OCInetOrgPerson = "inetOrgPerson"
|
|
|
|
OCAKUser = "goauthentik.io/ldap/user"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
OUUsers = "users"
|
|
|
|
OUGroups = "groups"
|
|
|
|
OUVirtualGroups = "virtual-groups"
|
|
|
|
)
|
2021-12-02 14:28:58 +00:00
|
|
|
|
|
|
|
func GetDomainOCs() map[string]bool {
|
|
|
|
return map[string]bool{
|
|
|
|
OCTop: true,
|
|
|
|
OCDomain: true,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func GetContainerOCs() map[string]bool {
|
|
|
|
return map[string]bool{
|
|
|
|
OCTop: true,
|
|
|
|
OCNSContainer: true,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func GetUserOCs() map[string]bool {
|
|
|
|
return map[string]bool{
|
|
|
|
OCUser: true,
|
|
|
|
OCOrgPerson: true,
|
|
|
|
OCInetOrgPerson: true,
|
|
|
|
OCAKUser: true,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func GetGroupOCs() map[string]bool {
|
|
|
|
return map[string]bool{
|
|
|
|
OCGroup: true,
|
|
|
|
OCGroupOfUniqueNames: true,
|
|
|
|
OCAKGroup: true,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func GetVirtualGroupOCs() map[string]bool {
|
|
|
|
return map[string]bool{
|
|
|
|
OCGroup: true,
|
|
|
|
OCGroupOfUniqueNames: true,
|
|
|
|
OCAKVirtualGroup: true,
|
|
|
|
}
|
|
|
|
}
|