Skip to content

Commit 86ba321

Browse files
committed
use hostname instead of host (fixes #25)
1 parent cbc1b2b commit 86ba321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/express-ntlm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ module.exports = function(options) {
111111
var serverurl = url.parse(server),
112112
decoded_path = decodeURI(serverurl.path);
113113
options.debug(options.prefix, 'Initiating connection to Active Directory server ' + serverurl.host + ' (domain ' + domain + ') using base DN "' + decoded_path + '".');
114-
proxy = new NTLM_AD_Proxy(serverurl.host, serverurl.port, domain, decoded_path);
114+
proxy = new NTLM_AD_Proxy(serverurl.hostname, serverurl.port, domain, decoded_path);
115115
} else {
116116
return eachDomaincontrollerCallback(new Error('Domaincontroller must be an AD and start with ldap://'));
117117
}

0 commit comments

Comments
 (0)