docs.konghq.com icon indicating copy to clipboard operation
docs.konghq.com copied to clipboard

ldap-auth

Open thanhtai9606 opened this issue 3 years ago • 2 comments

Where is the problem?

https://docs.konghq.com/hub/kong-inc/ldap-auth/

What happened?

I cannot login with auth-ldap this is my config, I already tried with attribute: cn, userPrincipalName,... But not working

apiVersion: configuration.konghq.com/v1
kind: KongClusterPlugin
metadata:
  name: global-ldap-auth
  annotations:
    kubernetes.io/ingress.class: kong
  labels:
    global: "true"
config: 
  hide_credentials: true
  ldap_host: 192.168.xxx.xxx
  ldap_port: 389
  start_tls: false
  ldaps: false
  base_dn: dc=becamex,dc=local,dc=com
  verify_ldap_host: false
  attribute: sAMAccountName
  cache_ttl: 60
  header_type: ldap
plugin: ldap-auth

What did you expect to happen?

This is test in postman Authorization: ldap ZHVuZy5sdC5jbnR0OjEyMzQ2

This is result error
{
    "message": "Invalid authentication credentials"
}

Code of Conduct and Community Expectations

  • [X] I agree to follow this project's Code of Conduct
  • [X] I agree to abide by the Community Expectations

thanhtai9606 avatar Feb 22 '22 10:02 thanhtai9606

+1

keinou avatar Feb 02 '23 15:02 keinou

@keinou & @thanhtai9606 - This doesn't seem like a documentation bug (at least not the way it's written so far) but more than likely the symptom of an incorrect setup configuration in your environments. The error implies your credentials are incorrect, more details would be required to troubleshoot such as the debug logs from the environment so we can determine why it may be throwing that error if it's unable to connect to your LDAP servers for example.

If you can kindly provide more details for us, this would be appreciated so we can determine if this is actually a documentation bug or something different. If this isn't a documentation bug and if you have Enterprise support, please feel free to also open a support case via the Support Portal at https://support.konghq.com/s/login/. If you are using OSS, then you can consider opening an Issue here if needed: https://github.com/Kong/kong/issues

d19dotca avatar May 18 '23 23:05 d19dotca