Skip to content

Instantly share code, notes, and snippets.

@minazou67
minazou67 / java-se-0-note.md
Last active December 3, 2015 02:14
Notes the Java SE
@jedp
jedp / gist:1784039
Created February 9, 2012 22:53
ldap auth for express and socket.io
// express + socket.io example (chat server)
// that requires authentication via ldap.
// express shares authentication with socket.io.
var express = require('express');
var io = require('socket.io');
var ldap = require('./lib/node-ldapauth/ldapauth');
var sessionStore = new express.session.MemoryStore(); // whatever
var parseCookie = require('connect').utils.parseCookie;