Auth0 Home Blog Docs

AD/LDAP Connector - Error: Unable to find users. Verify the permissions for

auth0
login

#1

I am evaluating to use Auth0 for our customers who will access our Apps via modern SPA, web and mobile apps. My company is using Jumpcloud as a Directory as a Service to host LDAP. for internal users on our network so that they can all have a central login. Thus I want to connect Auth0 and JumpCloud via the AD/LDAP Connector via a Debian Unix host running on GCP.

The issue: I am getting a permissions issue when running the AD/LDAP Connector.

I can connect successfully via another LDAP client and have checked that the user has “Enable as LDAP Bind DN” checked on their privileges.

I am now at a point where I have tried a number of combinations of DN’s and usernames and have followed your Trouble shooting guide but I still can not get it to work and am close to giving up.

I’d be grateful if anyone has some ideas to help?

I have attached my config.json (without password) and all the other info I could gather.
Note: I do not have a /var/log/auth0-adldap.log

config.json - note I had to remove “://” from url’s in this issue in order to be able to post it through the community GUI

{
  "LDAP_BASE": "ou=Users,o=588888eb13d4361f4b00a97e,dc=jumpcloud,dc=com",
  "LDAP_URL": "ldaps ldap.jumpcloud.com:636",
  "ANONYMOUS_SEARCH_ENABLED": false,
  "AD_HUB": "https_auth0-idp.eu.auth0.com/lo/hub",
  "PROVISIONING_TICKET": "https_auth0-idp.eu.auth0.com/p/ad/WIHZRT31",
  "WSFED_ISSUER": "MASKEDXXYYZZ.net",
  "CONNECTION": "JumpCloudLDAP",
  "CLIENT_CERT_AUTH": false,
  "KERBEROS_AUTH": false,
  "FIREWALL_RULE_CREATED": false,
  "REALM": "urn:auth0:auth0-idp",
  "SITE_NAME": "JumpCloudLDAP",
  "urn:auth0:auth0-idp": "https auth0-idp.eu.auth0.com/login/callback",
  "LDAP_BIND_USER": "uid=ldapadmin,ou=Users,o=58de3aeb13d4361f4b00a97e,dc=jumpcloud,dc=com",
  "SERVER_URL": "http address:4000",
  "LAST_SENT_THUMBPRINT": "61888e72dc5a4eab99809eaac0981d6f51d88b95",
  "TENANT_SIGNING_KEY": "-----BEGIN CERTIFICATE-----\r\nMIIDBzCCAe+gAwIBAgIJRidevOsTxfNZMA0GCSqGSIb3DQ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\n",
  "LDAP_BIND_CREDENTIALS": "MASKEDXXYYZZ"
}

When running the troubleshoot.js

/opt/auth0-adldap# node troubleshoot.js
Troubleshooting AD LDAP connector
Reading CA certificates from OPENSSLDIR
Reading CA certificates from /usr/lib/ssl/certs
Adding 152 certificates
06:24:06 - info: No proxy server configured.
06:24:06 - info: ✭ Testing connectivity to Auth0…
06:24:06 - info: > Test endpoint: https auth0-idp.eu.auth0.com/test
06:24:06 - info: :heavy_check_mark: Connection to test endpoint succeeded.
06:24:06 - info: ✭ Testing hub connectivity (WS).
06:24:06 - info: :heavy_check_mark: Connection to hub succeeded.
06:24:06 - info: ✭ Testing clock skew…
06:24:07 - info: :heavy_check_mark: Everything OK. No clock skew detected.
06:24:07 - info: ✭ Testing certificates…
06:24:07 - info: > Local thumbprint: 61847e72dc5a4eab99809eaac0981d6f51d88b95
06:24:07 - info: > Server thumbprint: 61847e72dc5a4eab99809eaac0981d6f51d88b95
06:24:07 - info: :heavy_check_mark: Local and server certificates match.
06:24:07 - info: ✭ Running NLTEST…
06:24:07 - warn: > NLTEST can only run on Windows.
06:24:07 - info: ✭ Testing LDAP connectivity.
06:24:07 - info: > LDAP BASE: ou=Users,o=58de3aeb13d4361f4b00a97e,dc=jumpcloud,dc=com
end
06:24:07 - error: > Error: Unable to find users. Verify the permissions for the current user.
06:24:07 - info: Done!

When running the server.js

root@auth0-jumpcloud-ldap-bridge:/opt/auth0-adldap# node server.js
[2018-07-31 06:35:37] Reading CA certificates from OPENSSLDIR
[2018-07-31 06:35:38] Reading CA certificates from /usr/lib/ssl/certs
[2018-07-31 06:35:38] Adding 152 certificates
[2018-07-31 06:35:38] Loading settings from ticket: https auth0-idp.eu.auth0.com/p/ad/WIHZRT31/info
[2018-07-31 06:35:38] Local settings updated.
[2018-07-31 06:35:38] Certificates already exist, skipping certificate generation.
[2018-07-31 06:35:38] Configuring connection JumpCloudLDAP.
[2018-07-31 06:35:38] > Posting certificates and signInEndpoint: http auth0-jumpcloud-ldap-bridge:4000/wsfed
[2018-07-31 06:35:38] Connection JumpCloudLDAP configured.
[2018-07-31 06:35:38] Connector setup complete.
[2018-07-31 06:35:38] Cache enabled
[2018-07-31 06:35:38] Connecting to wss auth0-idp.eu.auth0.com/lo/hub.
[2018-07-31 06:35:38] jsonwebtoken: expiresInMinutes and expiresInSeconds is deprecated. (/opt/auth0-adldap/ws_vali
dator.js:300:19)
Use “expiresIn” expressed in seconds.
[2018-07-31 06:35:38] auth0: Agent accepted.
[2018-07-31 06:35:39] latency test took avg: 81.6 ms, max: 122.04 ms, min: 70.05 ms