Socket
Socket
Sign inDemoInstall

uci-ldap-search

Package Overview
Dependencies
33
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    uci-ldap-search

Node.js LDAP search tool tailered for simple UCI directory searching


Version published
Weekly downloads
14
increased by366.67%
Maintainers
1
Install size
10.1 MB
Created
Weekly downloads
 

Readme

Source

A search tool based on ldapjs which adds UCI's LDAP base and allows non-credentialed search to the extent allowable by OIT. UCI OIT LDAP information located here.

It's very simple so far and has very little concept of searches, but it is a minor step to make ldap more accessible to those who just need to search quickly for basic information like campus_id, name, email, phone number, etc. only things which one can already get from the directory and campus_id.

Install

$ npm install --save uci-ldap-search

Usage

It only has two functions presently, searchBy which takes a raw filter, and searchByNetID with takes a UCINetID.

var Ldap = require('uci-ldap-search');

Ldap.searchByNetID('rhett', function (err, data) {
  if (err) {
    throw err;
  }
  
  console.log(data); // object of ldap data
});

// Use like searching.
var useLike = true;
Ldap.searchByNetID('hett', useLike, function (err, data) {
  if (err) {
    throw err;
  }
 
  console.log(data); // array of objects of ldap data
});

Ldap.searchBy('(&(cn=Rhett *)(uid=rhett))', function (err, data) {
  if (err) {
    throw err;
  }
  
  console.log(data); // object of ldap data
});

Todo

  • Add array input for searchByNetID
  • Make functions then-able using promises
  • Add ability to authenticate for non-public usage

License

See LICENSE for full info.

Contributors

Contributions

By all means, if you know LDAP better than me (which is just about everyone), jump right in with a fork and a pull request!

Keywords

FAQs

Last updated on 26 Jan 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc