Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 860 Bytes

File metadata and controls

35 lines (30 loc) · 860 Bytes

Active Directory

a Sails application

Configuration: config/adopts.js - Not uploaded to git repo - can contain sensitive data Example adopts.js file:

module.exports = {
  adopts: {
    integrated: false, //Use native windows authentication?
    ldap: {
      url: 'ldap://example.com',
      baseDN: 'dc=example,dc=com',
      username: '[email protected]',
      password: '3x@mp1ePassword!'
    }
  }
};

Permissions: config/adperms.js - Not uploaded to git repo - can contain sensitive data.

  • The config of permissions is:
module.exports = {
  memberOf: {
    '<AD GROUP TO BE MEMBER OF>': ['<ROLE NAME TO ASSOCIATE TO>',],
  }
};

This plugin will create a user object under a new collection called AD.

Only attribute contained will be Role and ObjectID. The ID of the this item will be the token generated.