rewrite API, talk to ldap
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
+26
-4
@@ -1,6 +1,29 @@
|
||||
// Package config should be moved to internal
|
||||
package config
|
||||
|
||||
// LDAP defines the available ldap configuration.
|
||||
type LDAP struct {
|
||||
Hostname string
|
||||
Port int
|
||||
BaseDN string
|
||||
UserFilter string
|
||||
GroupFilter string
|
||||
BindDN string
|
||||
BindPassword string
|
||||
IDP string
|
||||
Schema LDAPSchema
|
||||
}
|
||||
|
||||
// LDAPSchema defines the available ldap schema configuration.
|
||||
type LDAPSchema struct {
|
||||
AccountID string
|
||||
Identities string
|
||||
Username string
|
||||
DisplayName string
|
||||
Mail string
|
||||
Groups string
|
||||
}
|
||||
|
||||
// Server configures a server.
|
||||
type Server struct {
|
||||
Name string
|
||||
@@ -17,10 +40,9 @@ type Log struct {
|
||||
|
||||
// Config merges all Account config parameters.
|
||||
type Config struct {
|
||||
MountPath string
|
||||
Manager string
|
||||
Server Server
|
||||
Log Log
|
||||
LDAP LDAP
|
||||
Server Server
|
||||
Log Log
|
||||
}
|
||||
|
||||
// New returns a new config.
|
||||
|
||||
Reference in New Issue
Block a user