Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin issue in binding #18

Open
iamman0j opened this issue Aug 10, 2017 · 1 comment
Open

plugin issue in binding #18

iamman0j opened this issue Aug 10, 2017 · 1 comment

Comments

@iamman0j
Copy link

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 ?

@santoshrao99
Copy link

santoshrao99 commented Sep 8, 2017

+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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants