Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions docs/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ Example:
const change = new ldap.Change({
operation: 'add',
modification: {
pets: ['cat', 'dog']
type: 'pets',
values: ['cat', 'dog']
}
});

Expand All @@ -234,7 +235,13 @@ must be one of:
| add | Adds the attribute value(s) referenced in `modification`. The attribute may or may not already exist. |
| delete | Deletes the attribute (and all values) referenced in `modification`. |

`modification` is just a plain old JS object with the values you want.
`modification` is just a plain old JS object with the required type and values you want.

| Operation | Description |
|-----------|-------------|
| type | String that defines the attribute type for the modification. |
| values | Defines the values for modification. |


# modifyDN
`modifyDN(dn, newDN, controls, callback)`
Expand Down