ep_ldapauth
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -20,6 +20,6 @@ // Copyright 2013 Andrew Grimberg <tykeal@bardicgrove.org> | ||
if (ERR(err)) { | ||
console.debug('ep_ldapauth.ldapauthSetUsername: have authorid %s, setting username to %s', author, username); | ||
authorManager.SetAuthorName(author, username); | ||
console.debug('ep_ldapauth.ldapauthSetUsername: could not get authorid for token %s', token); | ||
} else { | ||
console.debug('ep_ldapauth.ldapauthSetUsername: could not get authorid for token %s', token); | ||
console.debug('ep_ldapauth.ldapauthSetUsername: have authorid %s, setting username to "%s"', author, username); | ||
authorManager.setAuthorName(author, username); | ||
} | ||
@@ -56,7 +56,7 @@ }); | ||
// User authenticated, save off some information needed for authorization | ||
var user = { username: username }; | ||
context.req.session.user = user; | ||
context.req.session.user = { username: username }; | ||
settings.globalUserName = username; | ||
console.debug('ep_ldapauth.authenticate: deferring setting of username [%s] to CLIENT_READY for express_sid = %s', username, express_sid); | ||
ldapauthUsername[express_sid] = username; | ||
// We use the CN / display name for our global username | ||
ldapauthUsername[express_sid] = user.cn; | ||
return cb([true]); | ||
@@ -129,3 +129,3 @@ }); | ||
var express_sid = context.client.manager.handshaken[client_id].sessionID; | ||
console.debug('ep_ldapauth.handleMessage: intercepted CLIENT_READY message for client_id = %s express_sid = %s, setting username for token %s to %s', client_id, express_sid, context.message.token, ldapauthUsername); | ||
console.debug('ep_ldapauth.handleMessage: intercepted CLIENT_READY message for client_id = %s express_sid = %s, setting username for token %s to %s', client_id, express_sid, context.message.token, ldapauthUsername[express_sid]); | ||
ldapauthSetUsername(context.message.token, ldapauthUsername[express_sid]); | ||
@@ -132,0 +132,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"author": "Andrew Grimberg <agrimberg@linuxfoundation.org>", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"license": "GPLv2", | ||
@@ -8,0 +8,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28399