Auth0 Home Blog Docs

Active Directory Connector - (uncaught exception in connector) only when checking some users

Hello,

We have installed the Active Directory Connnector (Windows). Some users are working OK and we are able to authenticate with no problem.

We added a new user to our AD, and when trying to authenticate that user the lock screen shows: “Wrong Username or Password” even though the credentials are correct.

When we look at the Auth0 connector troubleshooting logs, we see the following when trying the new user (called Jwt in this example):

2019-06-29T22:16:53.837Z - debug: [2019-06-29 22:16:53] user Jwt: Starting authentication attempt.
2019-06-29T22:16:53.840Z - debug: [2019-06-29 22:16:53] user Jwt: Queueing bind with DN “CN=Jwt Pete,OU=IT,OU=PIC Users,DC=PIC”
2019-06-29T22:16:53.842Z - debug: [2019-06-29 22:16:53] user Jwt: Bind OK.
2019-06-29T22:16:53.842Z - debug: [2019-06-29 22:16:53] user Jwt: Enrich profile.
2019-06-29T22:16:53.859Z - error: uncaughtException: get() requires a key argument date=Sat Jun 29 2019 15:16:53 GMT-0700 (Pacific Daylight Time), pid=22880, uid=null, gid=null, cwd=C:\Program Files (x86)\Auth0\AD LDAP Connector, execPath=C:\Program Files (x86)\Auth0\AD LDAP Connector\node.exe, version=v10.16.0, argv=[C:\Program Files (x86)\Auth0\AD LDAP Connector\node.exe, C:\Program Files (x86)\Auth0\AD LDAP Connector\server.js], rss=52383744, heapTotal=25825280, heapUsed=21860620, external=778909, loadavg=[0, 0, 0], uptime=291026, trace=[column=11, file=x86)\Auth0\AD LDAP Connector\node_modules\levelup\lib\levelup.js, function=LevelUP.get (C:\Program Files, line=150, method=get (C:\Program Files, native=false, column=23, file=x86)\Auth0\AD LDAP Connector\lib\users.js, function=C:\Program Files, line=523, method=null, native=false, column=13, file=x86)\Auth0\AD LDAP Connector\node_modules\async\lib\async.js, function=C:\Program Files, line=227, method=null, native=false, column=13, file=x86)\Auth0\AD LDAP Connector\node_modules\async\lib\async.js, function=C:\Program Files, line=111, method=null, native=false, column=null, file=null, function=Array.forEach, line=null, method=forEach, native=false, column=24, file=x86)\Auth0\AD LDAP Connector\node_modules\async\lib\async.js, function=_each (C:\Program Files, line=32, method=null, native=false, column=9, file=x86)\Auth0\AD LDAP Connector\node_modules\async\lib\async.js, function=async.each (C:\Program Files, line=110, method=each (C:\Program Files, native=false, column=9, file=x86)\Auth0\AD LDAP Connector\node_modules\async\lib\async.js, function=_asyncMap (C:\Program Files, line=226, method=null, native=false, column=23, file=x86)\Auth0\AD LDAP Connector\node_modules\async\lib\async.js, function=Object.map (C:\Program Files, line=204, method=map (C:\Program Files, native=false, column=9, file=x86)\Auth0\AD LDAP Connector\lib\users.js, function=module.exports.Users._getAllGroupsADCached (C:\Program Files, line=522, method=_getAllGroupsADCached (C:\Program Files, native=false], stack=[ReadError: get() requires a key argument, at LevelUP.get (C:\Program Files (x86)\Auth0\AD LDAP Connector\node_modules\levelup\lib\levelup.js:150:11), at C:\Program Files (x86)\Auth0\AD LDAP Connector\lib\users.js:523:23, at C:\Program Files (x86)\Auth0\AD LDAP Connector\node_modules\async\lib\async.js:227:13, at C:\Program Files (x86)\Auth0\AD LDAP Connector\node_modules\async\lib\async.js:111:13, at Array.forEach (), at _each (C:\Program Files (x86)\Auth0\AD LDAP Connector\node_modules\async\lib\async.js:32:24), at async.each (C:\Program Files (x86)\Auth0\AD LDAP Connector\node_modules\async\lib\async.js:110:9), at _asyncMap (C:\Program Files (x86)\Auth0\AD LDAP Connector\node_modules\async\lib\async.js:226:9), at Object.map (C:\Program Files (x86)\Auth0\AD LDAP Connector\node_modules\async\lib\async.js:204:23), at module.exports.Users._getAllGroupsADCached (C:\Program Files (x86)\Auth0\AD LDAP Connector\lib\users.js:522:9)]

2019-06-29T22:16:53.860Z - error: [2019-06-29 22:16:53] ReadError: get() requires a key argument

at LevelUP.get (C:\Program Files (x86)\Auth0\AD LDAP Connector\node_modules\levelup\lib\levelup.js:150:11)

at C:\Program Files (x86)\Auth0\AD LDAP Connector\lib\users.js:523:23

at C:\Program Files (x86)\Auth0\AD LDAP Connector\node_modules\async\lib\async.js:227:13

at C:\Program Files (x86)\Auth0\AD LDAP Connector\node_modules\async\lib\async.js:111:13

at Array.forEach (<anonymous>)

at _each (C:\Program Files (x86)\Auth0\AD LDAP Connector\node_modules\async\lib\async.js:32:24)

at async.each (C:\Program Files (x86)\Auth0\AD LDAP Connector\node_modules\async\lib\async.js:110:9)

at _asyncMap (C:\Program Files (x86)\Auth0\AD LDAP Connector\node_modules\async\lib\async.js:226:9)

at Object.map (C:\Program Files (x86)\Auth0\AD LDAP Connector\node_modules\async\lib\async.js:204:23)

at module.exports.Users._getAllGroupsADCached (C:\Program Files (x86)\Auth0\AD LDAP Connector\lib\users.js:522:9)

If we try another user (Pete in this example), the authentication seems to work fine.
2019-06-29T22:03:44.874Z - debug: [2019-06-29 22:03:44] user Pete: Starting authentication attempt.
2019-06-29T22:03:44.878Z - debug: [2019-06-29 22:03:44] user Pete: Queueing bind with DN “CN=Pete,OU=IT,OU=PIC Users,DC=PIC”
2019-06-29T22:03:44.881Z - debug: [2019-06-29 22:03:44] user Pete: Bind OK.
2019-06-29T22:03:44.881Z - debug: [2019-06-29 22:03:44] user Pete: Enrich profile.
2019-06-29T22:03:44.905Z - debug: [2019-06-29 22:03:44] user Pete: Enrich profile OK.

2019-06-29T22:03:44.905Z - debug: [2019-06-29 22:03:44] user Pete: Authentication succeeded.

Can you please help us troubleshoot?

Bump. Can an Auth0 dev comment? This is an uncaught exception in the Auth0 Active Directory Connector that is failing. Any ideas?