Skip to content

leohihimax/ldap_authenticator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ldap_authenticator

ldap authenticator for client side nodejs

Usage

var authUser = require('ldap_authenticator');

var config = {
  url: 'url',                           //ldap server ip  'ldap://xxx.xxx.xxx.xxx:389'
  username: 'username',                 // username to login
  password: 'password',
  domainComponent: 'domainComponent',   //'dc=xxx, dc=xxx'
  filterField: 'filterField'            // 'xxx'=username   the username field in ldap
};
authUser(config.url, config.username, config.password, config.domainComponent, config.filterField, function (err) {
    if (err) {
        'authentication fail ......'
        'do something'
    } else {
        'authentication success ......'
        'do something'
    }
});

About

ldap authenticator for nodejs

Resources

License

Stars

Watchers

Forks

Packages

No packages published