Merge pull request #32 from trentm/doc-tweaks

tweaks to client.md
This commit is contained in:
Mark Cavage 2011-11-07 12:06:35 -08:00
commit 060bb2c55b
1 changed files with 3 additions and 2 deletions

View File

@ -15,6 +15,7 @@ with LDAP. If you're not, read the [guide](http://ldapjs.org/guide.html) first.
The code to create a new client looks like:
var ldap = require('ldapjs');
var client = ldap.createClient({
url: 'ldap://127.0.0.1:1389'
});
@ -143,8 +144,8 @@ pass in a single `Change` or an array of `Change` objects.
Example:
var change = new Change({
type: 'add',
var change = new ldap.Change({
operation: 'add',
modification: {
pets: ['cat', 'dog']
}