https://github.com/emgee3/meteor-accounts-ldap
Proof of concept for LDAP authentication mechanism for Meteor
https://github.com/emgee3/meteor-accounts-ldap
Last synced: about 1 year ago
JSON representation
Proof of concept for LDAP authentication mechanism for Meteor
- Host: GitHub
- URL: https://github.com/emgee3/meteor-accounts-ldap
- Owner: emgee3
- License: other
- Created: 2013-07-18T21:14:55.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2014-05-04T14:38:25.000Z (about 12 years ago)
- Last Synced: 2025-04-13T02:28:04.576Z (about 1 year ago)
- Language: JavaScript
- Size: 127 KB
- Stars: 21
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-projects - meteor-accounts-ldap - Proof of concept for LDAP authentication mechanism for Meteor ⭐21 `JavaScript` (📦 Legacy & Inactive Projects)
README
Accounts-LDAP for Meteor
===============
This is a proof of concept LDAP add-on to Meteor Accounts.
That said, when one logs in with a username and password, it does check said username and password against an LDAP server.
This code has been updated for Meteor 0.8.1.1 but is completely untested as I'm not near a network that has an LDAP server currently.
Installation
============
* Copy to `/packages` in your project.
```
// if using Accounts UI, you could add something lik
Accounts.ui.config({
passwordSignupFields: 'USERNAME_ONLY'
});
Accounts.config({
forbidClientAccountCreation: true
});
```
* Update lines 10-23 in `ldap-client.js` with your server's data
* Lines 14-15 in `ldap-handler.js` determine whether or not nonexistent Meteor accounts are created when a person's LDAP credentials check out.
Usage
=====
Accounts.callLoginMethod({
methodArguments: [{ username : 'username', password : 'password' }],
userCallback: function (error, result) {
if (error) {
console.log(error || "Unknown error");
}
}
});
Notes
=====
* The LDAP search strings are Active Directory-specific
* ***The typed-in username and password is sent to the Meteor server unencrypted***
* There's no code to check if the LDAP connection failed.