From 6dcecaaf5533b0170b06d73ad5e85178d068e70d Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 16 May 2016 14:14:58 -0700 Subject: [PATCH] log the ldap source --- src/ldap.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ldap.js b/src/ldap.js index 4dc2911ba..f76e294ac 100644 --- a/src/ldap.js +++ b/src/ldap.js @@ -41,7 +41,7 @@ function getAppByRequest(req, callback) { } function userSearch(req, res, next) { - debug('user search: dn %s, scope %s, filter %s', req.dn.toString(), req.scope, req.filter.toString()); + debug('user search: dn %s, scope %s, filter %s (from %s)', req.dn.toString(), req.scope, req.filter.toString(), req.connection.ldap.id); user.list(function (error, result) { if (error) return next(new ldap.OperationsError(error.toString())); @@ -92,7 +92,7 @@ function userSearch(req, res, next) { } function groupSearch(req, res, next) { - debug('group search: dn %s, scope %s, filter %s', req.dn.toString(), req.scope, req.filter.toString()); + debug('group search: dn %s, scope %s, filter %s (from %s)', req.dn.toString(), req.scope, req.filter.toString(), req.connection.ldap.id); user.list(function (error, result){ if (error) return next(new ldap.OperationsError(error.toString())); @@ -131,7 +131,7 @@ function groupSearch(req, res, next) { } function userBind(req, res, next) { - debug('user bind: %s', req.dn.toString()); + debug('user bind: %s (from %s)', req.dn.toString(), req.connection.ldap.id); // extract the common name which might have different attribute names var attributeName = Object.keys(req.dn.rdns[0])[0];