ContainX / marathon-ldap

LDAP / Active Directory Authentication and Authorization Plugin for Mesosphere Marathon
Other
60 stars 32 forks source link

plugin doesnt work with marathon 1.4.3 #17

Open slawekgh opened 7 years ago

slawekgh commented 7 years ago

following the install procedure - it seems doesnt work - log output:

May 19 18:28:24 server03 marathon[25120]: [2017-05-19 18:28:24,113] INFO  Loading plugins implementing 'mesosphere.marathon.plugin.auth.Authenticator' from these urls: [] (mesosphere.marathon.core.plugin.impl.PluginManagerImpl:main)
May 19 18:28:24 server03 marathon[25120]: [2017-05-19 18:28:24,120] INFO  Found 0 plugins. (mesosphere.marathon.core.plugin.impl.PluginManagerImpl:main)
May 19 18:28:24 server03 marathon[25120]: [2017-05-19 18:28:24,122] INFO  Loading plugins implementing 'mesosphere.marathon.plugin.auth.Authorizer' from these urls: [] (mesosphere.marathon.core.plugin.impl.PluginManagerImpl:main)
May 19 18:28:24 server03 marathon[25120]: [2017-05-19 18:28:24,122] INFO  Found 0 plugins. (mesosphere.marathon.core.plugin.impl.PluginManagerImpl:main)
May 19 18:28:24 server03 marathon[25120]: [2017-05-19 18:28:24,142] INFO  Started status update processor (mesosphere.marathon.core.task.update.impl.TaskStatusUpdateProcessorImpl$$EnhancerByGuice$$86c07231:main)
slawekgh commented 7 years ago

+1

slawekgh commented 7 years ago

+2

minyk commented 7 years ago

@slawekgh Hi, I'm successfully startup marathon 1.4.3 with the plugin. Here is my log:

[2017-07-29 02:48:36,650] INFO  Loading plugins implementing 'mesosphere.marathon.plugin.auth.Authenticator' from these urls: [file:/var/marathon/plugins/plugin-conf.json, file:/var/marathon/plugins/marathon-ldap.jar] (mesosphere.marathon.core.plugin.impl.PluginManagerImpl:main)
[2017-07-29 02:48:36,677] INFO  Configure the plugin with this configuration: Some({"ldap":{"url":"ldap://my.ldapserver.local:389","base":"dc=example,dc=com","dn":"uid={username}","bindUser":"usernameToBind","bindPassword":"passwordToBind","userSearch":"(&(uid={username})(objectClass=inetOrgPerson))","userSubTree":"ou=People","groupSearch":"(&(memberUid={username})(objectClass=posixGroup))","groupSubTree":"ou=Group"},"users":[{"username":"someuser","password":"somepass","groups":["Admin"]}],"authorization":{"access":[{"group":"Admin","permissions":[{"allowed":"*","type":"app"},{"allowed":"*","type":"group"}]},{"group":"Developers","permissions":[{"allowed":"view","type":"app","path":"/"},{"allowed":"view","type":"group","path":"/"},{"allowed":"create","type":"app","path":"/dev"},{"allowed":"update","type":"app","path":"/dev"},{"allowed":"delete","type":"app","path":"/dev"}]}]}}) (mesosphere.marathon.core.plugin.impl.PluginManagerImpl:main)
[2017-07-29 02:48:36,743] INFO  Found 1 plugins. (mesosphere.marathon.core.plugin.impl.PluginManagerImpl:main)
[2017-07-29 02:48:36,746] INFO  Loading plugins implementing 'mesosphere.marathon.plugin.auth.Authorizer' from these urls: [file:/var/marathon/plugins/plugin-conf.json, file:/var/marathon/plugins/marathon-ldap.jar] (mesosphere.marathon.core.plugin.impl.PluginManagerImpl:main)
[2017-07-29 02:48:36,748] INFO  Found 1 plugins. (mesosphere.marathon.core.plugin.impl.PluginManagerImpl:main)