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

+1 -1
View File
@@ -202,7 +202,7 @@ func minioConfigToConsoleFeatures() {
}
}
// Enable if LDAP is enabled.
if globalLDAPConfig.Enabled {
if globalLDAPConfig.Enabled() {
os.Setenv("CONSOLE_LDAP_ENABLED", config.EnableOn)
}
os.Setenv("CONSOLE_MINIO_REGION", globalSite.Region)