I hereby claim:
- I am aaronchiang on github.
- I am aaronchiang (https://keybase.io/aaronchiang) on keybase.
- I have a public key whose fingerprint is 2BD3 F52E C726 19E3 84F1 AC31 B6E0 4B4D 3E86 E656
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
/** | |
* LDAP PHP Change Password Webpage | |
* @author: Matt Rude <http://mattrude.com> | |
* @website: http://technology.mattrude.com/2010/11/ldap-php-change-password-webpage/ | |
* | |
* | |
* GNU GENERAL PUBLIC LICENSE | |
* Version 2, June 1991 |
SERVER="dc1.us.yourcompany.com" | |
DN="CN=aUserLogin,OU=SomeOrgUnit,OU=AnotherOrgUnit,DC=dc1,DC=us,DC=yourcompany,DC=com" | |
PASSWORD="aUserLoginsPassword" | |
OU="ou=AnotherOrgUnit,dc=us,dc=yourcompany,dc=com" | |
ldapsearch -h "$SERVER" -p 389 \ | |
-x -D "$DN" -w "$PASSWORD" \ | |
-t -s sub -b "$OU" "(&(objectClass=user)(sAMAccountName=anotherUserLogin))" "thumbnailPhoto" | |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
//express3.0 | |
var express = require('express'); | |
var app = express(); | |
app.set('port', 3000); | |
app.set('views', __dirname + '/views'); | |
app.set('view engine', 'jade'); | |
app.use(express.bodyParser()); | |
app.use(express.methodOverride()); | |
//session & cookie |
var express = require('express') | |
, http = require('http') | |
, connect = require('connect') | |
, io = require('socket.io'); | |
var app = express(); | |
/* NOTE: We'll need to refer to the sessionStore container later. To | |
* accomplish this, we'll create our own and pass it to Express | |
* rather than letting it create its own. */ | |
var sessionStore = new connect.session.MemoryStore(); |