use LDAP config from minio/pkg to share with console (#15810)

This commit is contained in:
Aditya Manthramurthy authored and GitHub committed 2022-10-07 22:12:36 -07:00
1 parent 927a879052
commit 64cf887b28
15 files changed
+107 -696

No files matched your search

+3 -3
View File
@@ -335,12 +335,12 @@ func validateSubSysConfig(s config.Config, subSys string, objAPI ObjectLayer) er
return err
}
case config.IdentityLDAPSubSys:
cfg, err := xldap.Lookup(s[config.IdentityLDAPSubSys][config.Default], globalRootCAs)
cfg, err := xldap.Lookup(s, globalRootCAs)
if err != nil {
return err
}
if cfg.Enabled {
conn, cerr := cfg.Connect()
if cfg.Enabled() {
conn, cerr := cfg.LDAP.Connect()
if cerr != nil {
return cerr
}