From 6131b1146edeb30f64ee098ea1fe6473d7d235e4 Mon Sep 17 00:00:00 2001 From: Andrew Snare Date: Thu, 14 Nov 2013 16:59:48 +0100 Subject: [PATCH] Fix a typo in the array reference. --- lib/auth-ldap.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/auth-ldap.js b/lib/auth-ldap.js index e5ff7dd..f31176a 100644 --- a/lib/auth-ldap.js +++ b/lib/auth-ldap.js @@ -144,7 +144,9 @@ function start(options) { console.error("Cannot detect root naming context. Please configure manually."); break; case 1: - bindChannel(base[0]); + var base = bases[0]; + console.warn("Auto-detected base context: " + base); + bindChannel(base); break; case 2: console.error("Multiple bases detected. Please configure manually.");