Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
JavaScript PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
example/php
.gitignore
README.md
cnx.js
config.js
ldap.conf
ldap.js
package.json
pam.js

README.md

LDAP for iwg


LDAP for iwg is a Node.JS project that design for iwg to control permission.

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

在Windows平台上安装Node.js及NPM模块管理

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
Something went wrong with that request. Please try again.