update modification object in ldap.change (#910)

* updated the modification object in ldap.change

* Adding Change Interface

* Modification reference table
This commit is contained in:
Mihir Bhansali 2023-06-28 07:30:30 -04:00 committed by GitHub
parent f2890088e4
commit 70ce9c3643
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({ const change = new ldap.Change({
operation: 'add', operation: 'add',
modification: { 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. | | 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`. | | 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
`modifyDN(dn, newDN, controls, callback)` `modifyDN(dn, newDN, controls, callback)`