rewrite API, talk to ldap

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2020-06-15 16:02:44 +02:00
parent 16c5d13e10
commit 2fd05e2b6f
19 changed files with 2043 additions and 1296 deletions
+26 -4
View File
@@ -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.