LDAP authentication with MCS #114
                
     Merged
            
            
          
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
What does this do?
This PR adds ldap authentication support for mcs based on https://github.com/minio/minio/blob/master/docs/sts/ldap.md
fixes
#54
How to test
Setup
Run openLDAP with docker.
Run the
billy.ldiffile usingldapaddcommand to create a new user and assign it to a group.Query the ldap server to check the user billy was created correctly and got assigned to the mcsAdmin group, you should get a list
containing ldap users and groups.
Query the ldap server again, this time filtering only for the user
billy, you should see only 1 record.Change the password for user billy
Set the new password for
billytominio123and enteradminas the defaultLDAP PasswordAdd the mcsAdmin policy to user billy on MinIO
Run MinIO
Run MCS
Go to http://localhost:9090 and sign in to MCS using
billy/minio123credentials, you should be able to list buckets, policies and dashboard information.Note
Listing
usersandgroupswill not work when ldap it's enabled as per our discussion with @harshavardhana , I'll work on a separate PR to add a MCS configuration api to return curren available modules for the platform based on minio config.