Skip to content

Commit

Permalink
Add LDAP parts
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Apr 3, 2024
1 parent ff52dcd commit 5280ec1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ import (
"github.com/spf13/viper"
)

// LDAP attributes
type LDAP struct {
URL string `mapstructure:"url"` // ldap url
BaseDN string `mapstructure:"baseDN` // ldap baseDN
}

// Zenodo credentials
type Zenodo struct {
URL string `mapstructure:"Url"` // zenodo url
Expand Down Expand Up @@ -253,6 +259,7 @@ type Services struct {

// SrvConfig represents configuration structure
type SrvConfig struct {
LDAP `mapstructure:LDAP`
Frontend `mapstructure:"Frontend"`
Discovery `mapstructure:"Discovery"`
MetaData `mapstructure:"MetaData"`
Expand Down

0 comments on commit 5280ec1

Please sign in to comment.