mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
fix: authenticate LDAP via actual DN instead of normalized DN (#19805)
fix: authenticate LDAP via actual DN instead of normalized DN Normalized DN is only for internal representation, not for external communication, any communication to LDAP must be based on actual user DN. LDAP servers do not understand normalized DN. fixes #19757
This commit is contained in:
@@ -306,6 +306,7 @@ func (driver *ftpDriver) getMinIOClient(ctx *ftp.Context) (*minio.Client, error)
|
||||
claims[expClaim] = UTCNow().Add(expiryDur).Unix()
|
||||
|
||||
claims[ldapUser] = lookupResult.NormDN
|
||||
claims[ldapActualUser] = lookupResult.ActualDN
|
||||
claims[ldapUserN] = ctx.Sess.LoginUser()
|
||||
|
||||
// Add LDAP attributes that were looked up into the claims.
|
||||
|
||||
Reference in New Issue
Block a user