New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jsharmony-auth-windows

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsharmony-auth-windows

jsHarmony Windows Auth Provider

  • 1.2.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

======================

jsharmony-auth-windows

======================

Replaces password authentication with Active Directory/LDAP based authentication in jsharmony-factory projects.

Installation

npm install jsharmony-auth-windows --save

Initial Configuration

Add to your config file

var jsHarmonyAuthWindows = require('jsharmony-auth-windows');

....

  var authWindows = new jsHarmonyAuthWindows();
  jsh.AddModule(authWindows);

  var configAuth = config.modules['jsHarmonyAuthWindows'];
  if (configAuth) {
    configAuth.auto_bind_main_site_auth = false;  //REQUIRED to automatically integrate with jsHarmony Factory
      // Value must be 'true' to use the module, but must be 'false' initially to allow system configuration.

    configAuth.domain_controller = "LDAP://servername"; //REQUIRED for authentication
    //configAuth.system_account_user_principal_name = "ldap@your.domain";
    //configAuth.system_account_password = "password";

    //this.authentication_filter = "(&(objectClass=user)({{userPrincipalName}}={{windows_account}}))" // username@your.domain
    // On first authentication, {{userPrincipalName}} will be replaced with userPrincipalName
    // On failed authentication, {{userPrincipalName}} will be replaced with sAMAccountName (for alternative validation)

    // If requiring the user to be a member of a group:
    // this.authentication_filter = "(&(objectClass=user)({{userPrincipalName}}={{windows_account}})(memberof:1.2.840.113556.1.4.1941:=CN=jsHarmony Users,OU=Department,DC=YOUR,DC=DOMAIN))" // username@your.domain, member of group

    //configAuth.all_users_filter = "(&(objectcategory=person)(objectClass=user))";
    // or configAuth.all_users_filter = "(&(objectcategory=person)(objectClass=user)(memberof:1.2.840.113556.1.4.1941:=CN=jsHarmony Users,OU=Department,DC=YOUR,DC=DOMAIN))"; // members of a group
    //configAuth.authentication_cache_expiration = 60;
    //configAuth.debug_params.log_timing = true;
  }

If you are adding to an existing site, run the DB Script jsHarmonyAuthWindows.init.core.init. You will need to restart the server to see the new field in schema viewer.

Go into the "Administration/System Users" menu and configure the Windows Account, e.g. jdoe@your.domain for at least the administrator account. This field will be required to login once the module is enabled.

Enable the module

configAuth.auto_bind_main_site_auth = true;

Login with your jsharmoy email and domain passwword

Superlogin and client sites

If using superuser login-as-user on a client site with password auth, you must use the admin account's local password rather than it's domain account password to log in.

Keywords

FAQs

Package last updated on 15 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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