###How to install NodeJS
Just download from nodejs.
If you are using Ubuntu:
sudo apt-get install libssl-dev
./configure
make
make install
If you are using Windows:
just run the msi file to install
###How to install npm(the tools for manage modules using in NodeJS)
You can refer the following urls:
教學 nodeJS - npm install on linux and windows
###How to install ldap for PHP?
If you are using Ubuntu, just run the following command in Terminal:
sudo apt-get install php5-ldap
If you are using windows, just edit the php.ini:
change
;extension=php_ldap.dl
to
extension=php_ldap.dl
and restart Apache. You can visit the phpinfo() page to check it.
###How to get, install, and run this application?
npm install ldapjs
npm install git://github.com/felixge/node-mysql.git
git clone git://github.com/iwg/db-auth-ldap-wrapper.git
cd db-auth-ldap-wrapper/
sudo cp ldap.conf /etc/init/ldap.conf
sudo chmod u+x /etc/init/ldap.conf
node ldap.js