Skip to content
New issue

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

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

Already on GitHub? # to your account

missing bindDn or bindPassword in config should bind anonymously #27

Closed
airblag opened this issue Sep 6, 2017 · 1 comment
Closed
Assignees
Labels
enhancement Enhancement of existing feature/documentation

Comments

@airblag
Copy link

airblag commented Sep 6, 2017

My infrastructure LDAP is allowing limited anonymous queries, so I just commented out the bindDn and bindPassword fields from the mxisd.yaml config file :

ldap:
  enabled: true
  tls: false
  host: '10.1.2.3'
  port: 389
  # bindDn: 'cn=user,dc=domain,dc=com'
  # bindPassword: 'notthatone'

mxisd starts correctly, but the first request to validate anything returns an exception (to the client):

{"timestamp":1504707331374,"status":500,"error":"Internal Server Error","exception":"groovy.lang.GroovyRuntimeException","message":"Ambiguous method overloading for method org.apache.directory.ldap.client.api.LdapNetworkConnection#bind.\nCannot resolve which method to invoke for [null, null] due to overlapping prototypes between:\n\t[class java.lang.String, class java.lang.String]\n\t[class org.apache.directory.api.ldap.model.name.Dn, class java.lang.String]","path":"/_matrix/identity/api/v1/lookup"}

Setting the fields to the empty string '' binds anonymously.

It would be good to set them to '' if they are null to avoid this.

@maxidorius maxidorius added the enhancement Enhancement of existing feature/documentation label Sep 7, 2017
@maxidorius
Copy link
Member

@airblag Done in 4eb8c95

@maxidorius maxidorius self-assigned this Apr 12, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement Enhancement of existing feature/documentation
Projects
None yet
Development

No branches or pull requests

2 participants