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

+2 -2
View File
@@ -1798,8 +1798,8 @@ func getServerInfo(ctx context.Context, r *http.Request) madmin.InfoMessage {
kmsStat := fetchKMSStatus()
ldap := madmin.LDAP{}
if globalLDAPConfig.Enabled {
ldapConn, err := globalLDAPConfig.Connect()
if globalLDAPConfig.Enabled() {
ldapConn, err := globalLDAPConfig.LDAP.Connect()
//nolint:gocritic
if err != nil {
ldap.Status = string(madmin.ItemOffline)