0.1.0 • Published 8 years ago

unsw-ldap v0.1.0

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

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
});
0.1.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago