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

kerberos

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kerberos - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

LICENSE

17

lib/auth_processes/mongodb.js
var format = require('util').format;
var MongoAuthProcess = function(host, port) {
var MongoAuthProcess = function(host, port, service_name) {
// Check what system we are on
if(process.platform == 'win32') {
this._processor = new Win32MongoProcessor(host, port);
this._processor = new Win32MongoProcessor(host, port, service_name);
} else {
this._processor = new UnixMongoProcessor(host, port);
this._processor = new UnixMongoProcessor(host, port, service_name);
}

@@ -25,3 +25,3 @@ }

*******************************************************************/
var Win32MongoProcessor = function(host, port) {
var Win32MongoProcessor = function(host, port, service_name) {
this.host = host;

@@ -33,4 +33,6 @@ this.port = port

this._transition = Win32MongoProcessor.first_transition(this);
// Set up service name
service_name = service_name || "mongodb";
// Set up target
this.target = format("mongodb/%s", host);
this.target = format("%s/%s", service_name, host);
// Number of retries

@@ -183,3 +185,3 @@ this.retries = 10;

*******************************************************************/
var UnixMongoProcessor = function(host, port) {
var UnixMongoProcessor = function(host, port, service_name) {
this.host = host;

@@ -190,6 +192,7 @@ this.port = port

this.kerberos = new this.Kerberos();
service_name = service_name || "mongodb";
// Set up first transition
this._transition = UnixMongoProcessor.first_transition(this);
// Set up target
this.target = format("mongodb@%s", host);
this.target = format("%s@%s", service_name, host);
// Number of retries

@@ -196,0 +199,0 @@ this.retries = 10;

{
"name": "kerberos",
"version": "0.0.2",
"version": "0.0.3",
"description": "Kerberos library for Node.js",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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