Open iamman0j opened 7 years ago
+1 Marathon - 1.4.6 Mesos - 1.3.0 Plugin - 1.3
Able to login as static user. Tested binding to openldap manually and that works.
Seems like "dn" and {username} are null -
LOGGER.info("LDAP trying to connect as {} on {}", dn, config.getUrl());
[2017-09-08 02:30:56,399] INFO LDAP trying to connect as on ldap://ldap:389 (io.containx.marathon.plugin.auth.util.LDAPHelper:pool-5-thread-1) [2017-09-08 02:30:56,404] INFO LDAP Bind succeeded for user (io.containx.marathon.plugin.auth.util.LDAPHelper:pool-5-thread-1) [2017-09-08 02:30:56,404] INFO LDAP searching (&(objectclass=user)(sAMAccountName=)) in OU=xxxx,DC=intra,DC=xxxx,DC=xx,DC=xx (io.containx.marathon.plugin.auth.util.LDAPHelper:pool-5-thread-1)
I have added my ldap server details in the json file as below
"url": "ldap://:",
"base": "dc=,dc=com",
"dn": "uid={username}",
"bindUser": "",
"bindPassword": "password for ldap bind",
But i have got the below error
[LDAP: error code 1 - 000004DC: LdapErr: DSID-0C090752, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v2580] (io.containx.marathon.plugin.auth.util.LDAPHelper:pool-5-thread-1) [2017-08-10 14:42:44,392] ERROR LDAP error validating user: {} (io.containx.marathon.plugin.auth.LDAPAuthenticator:pool-5-thread-1) com.google.common.cache.CacheLoader$InvalidCacheLoadException: CacheLoader returned null for key AuthKey{username=manokar}.
I can login with the user without ldap. Anything I am missing ?