Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ep_ldapauth

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ep_ldapauth - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

14

ep_ldapauth.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc