Socket
Socket
Sign inDemoInstall

unsw-ldap

Package Overview
Dependencies
35
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    unsw-ldap

Perform queries to unsw's LDAP server


Version published
Weekly downloads
3
increased by50%
Maintainers
1
Install size
12.7 MB
Created
Weekly downloads
 

Readme

Source

UNSW-LDAP

This npm package provides basic funcitonality for interacting with UNSW's active directory server.

Installation

npm install unsw-ldap

Usage

So far, we only have the two functions: getUserName and isCSESoc. They return promises - for getUserName, it resolves to the Full Name associated with the zID provided, if the password provided is correct. For isCSESoc, it resolves to either true or false, if the given zID is a CSESoc member. (This isn't perfect... yet)

Example

var unsw = require('unsw-ldap');

unsw.getUserName("z1234567", "Password123").then(function(result){
    console.log(result) // Displays the name of whoever has zid z1234567
});

unsw.isCSESoc("z1234567", "Password123").then(function(result){
    console.log(result) // true if z1234567 is a CSESoc member, false otherwise
});

Keywords

FAQs

Last updated on 29 May 2016

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