* outposts/ldap: Refactor searching so we key primarily off base dn * docs: Updating guides on sssd and the ldap outpost.
		
			
				
	
	
		
			67 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
package constants
 | 
						|
 | 
						|
const (
 | 
						|
	OCTop         = "top"
 | 
						|
	OCDomain      = "domain"
 | 
						|
	OCNSContainer = "nsContainer"
 | 
						|
)
 | 
						|
 | 
						|
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"
 | 
						|
)
 | 
						|
 | 
						|
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,
 | 
						|
	}
 | 
						|
}
 |