Skip to content

Commit

Permalink
feat(ldap): add option to load ldap from file
Browse files Browse the repository at this point in the history
Signed-off-by: Laurentiu Niculae <[email protected]>
  • Loading branch information
laurentiuNiculae committed Oct 31, 2023
1 parent 3e6053e commit 75dc5c9
Show file tree
Hide file tree
Showing 4 changed files with 473 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkg/api/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,22 @@ type SchedulerConfig struct {
NumWorkers int
}

type LDAPCredentials struct {
BindDN string
BindPassword string
}

type LDAPConfig struct {
CredentialsFile string
Port int
Insecure bool
StartTLS bool // if !Insecure, then StartTLS or LDAPs
SkipVerify bool
SubtreeSearch bool
Address string
BindDN string
BindDN string `json:"-"`
BindPassword string `json:"-"`
UserGroupAttribute string
BindPassword string
BaseDN string
UserAttribute string
CACert string
Expand Down
Loading

0 comments on commit 75dc5c9

Please sign in to comment.