Skip to content

Instantly share code, notes, and snippets.

@davidsayers
Created October 17, 2016 10:35
Show Gist options
  • Save davidsayers/9673154d9b8a265f961faa7c014a278d to your computer and use it in GitHub Desktop.
Save davidsayers/9673154d9b8a265f961faa7c014a278d to your computer and use it in GitHub Desktop.
{
"plugins": {
"authorization": {
"plugin": "mesosphere.marathon.plugin.auth.Authorizer",
"implementation": "io.containx.marathon.plugin.auth.LDAPAuthorizor"
},
"authentication": {
"plugin": "mesosphere.marathon.plugin.auth.Authenticator",
"implementation": "io.containx.marathon.plugin.auth.LDAPAuthenticator",
"configuration": {
"ldap": {
"url": "ldaps://ldap.us.onelogin.com:636",
"base": "dc=foo,dc=onelogin,dc=com",
"dn": "cn={username}",
"bindUser": "cn=user@foo.com,ou=users,dc=foo,dc=onelogin,dc=com",
"bindPassword": "password",
"userSearch": "(&(cn={username})(objectClass=inetOrgPerson))",
"userSubTree": "ou=users"
},
"users": [
{
"username": "someuser",
"password": "somepass",
"groups": [
"Admin"
]
}
],
"authorization": {
"access": [
{
"group": "Admin",
"permissions": [
{
"allowed": "*",
"type" : "app"
},
{
"allowed": "*",
"type" : "group"
}
]
},
{
"group": "Developers",
"permissions": [
{
"allowed": "*",
"type" : "app"
},
{
"allowed": "*",
"type" : "group"
}
]
}
]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment