mirror of
https://github.com/minio/minio.git
synced 2026-11-13 14:44:19 +00:00
use LDAP config from minio/pkg to share with console (#15810)
This commit is contained in:
1 parent
927a879052
commit
64cf887b28
15 files changed
+107
-696
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user