 cd99b6e48f
			
		
	
	cd99b6e48f
	
	
	
		
			
			* internal/outpost/ldap: making ldap compatible with synology * fix duplicate attributes Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add docs about homedirectory Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix duplicate attributes Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add substitution to values Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: Jens Langhammer <jens@goauthentik.io>
		
			
				
	
	
		
			74 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			74 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| package constants
 | |
| 
 | |
| const (
 | |
| 	OCTop         = "top"
 | |
| 	OCDomain      = "domain"
 | |
| 	OCNSContainer = "nsContainer"
 | |
| )
 | |
| 
 | |
| const (
 | |
| 	OCGroup              = "group"
 | |
| 	OCGroupOfUniqueNames = "groupOfUniqueNames"
 | |
| 	OCGroupOfNames       = "groupOfNames"
 | |
| 	OCAKGroup            = "goauthentik.io/ldap/group"
 | |
| 	OCAKVirtualGroup     = "goauthentik.io/ldap/virtual-group"
 | |
| 	OCPosixGroup         = "posixGroup"
 | |
| )
 | |
| 
 | |
| const (
 | |
| 	OCUser          = "user"
 | |
| 	OCOrgPerson     = "organizationalPerson"
 | |
| 	OCInetOrgPerson = "inetOrgPerson"
 | |
| 	OCAKUser        = "goauthentik.io/ldap/user"
 | |
| 	OCPosixAccount        = "posixAccount"
 | |
| )
 | |
| 
 | |
| 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,
 | |
| 		OCPosixAccount:  true,
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func GetGroupOCs() map[string]bool {
 | |
| 	return map[string]bool{
 | |
| 		OCGroup:              true,
 | |
| 		OCGroupOfUniqueNames: true,
 | |
| 		OCGroupOfNames:       true,
 | |
| 		OCAKGroup:            true,
 | |
| 		OCPosixGroup:         true,
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func GetVirtualGroupOCs() map[string]bool {
 | |
| 	return map[string]bool{
 | |
| 		OCGroup:              true,
 | |
| 		OCGroupOfUniqueNames: true,
 | |
| 		OCGroupOfNames:       true,
 | |
| 		OCAKVirtualGroup:     true,
 | |
| 	}
 | |
| }
 |