Merge branch 'master' into master

This commit is contained in:
Qianchao Pan 2023-06-30 16:24:35 +08:00 committed by GitHub
commit d5f9a7e08c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 2 deletions

View File

@ -213,7 +213,8 @@ Example:
const change = new ldap.Change({
operation: 'add',
modification: {
pets: ['cat', 'dog']
type: 'pets',
values: ['cat', 'dog']
}
});
@ -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)`