'operation' instead of 'type'. Include 'require' stmts to help

This commit is contained in:
Trent Mick 2011-11-06 14:27:53 -08:00
parent b8799d6a1e
commit 5ca64c4c5c
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']
}