From 70ce9c364380be3c6f1da4a2217c15c4174ec207 Mon Sep 17 00:00:00 2001 From: Mihir Bhansali Date: Wed, 28 Jun 2023 07:30:30 -0400 Subject: [PATCH] update modification object in ldap.change (#910) * updated the modification object in ldap.change * Adding Change Interface * Modification reference table --- docs/client.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/client.md b/docs/client.md index 8caabb0..d88b223 100644 --- a/docs/client.md +++ b/docs/client.md @@ -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)`