update ad dependency (#4692)

This commit is contained in:
Becca Petrin 2018-06-04 12:09:41 -07:00 committed by Jeff Mitchell
parent 32fd7be4ac
commit 2e8a3e6d59
3 changed files with 13 additions and 20 deletions

View File

@ -64,19 +64,12 @@ func (c *Client) UpdateEntry(cfg *ldaputil.ConfigEntry, filters map[*Field][]str
return fmt.Errorf("filter of %s doesn't match just one entry: %s", filters, entries)
}
replaceAttributes := make([]ldap.PartialAttribute, len(newValues))
i := 0
for field, vals := range newValues {
replaceAttributes[i] = ldap.PartialAttribute{
Type: field.String(),
Vals: vals,
}
i++
modifyReq := &ldap.ModifyRequest{
DN: entries[0].DN,
}
modifyReq := &ldap.ModifyRequest{
DN: entries[0].DN,
ReplaceAttributes: replaceAttributes,
for field, vals := range newValues {
modifyReq.Replace(field.String(), vals)
}
conn, err := c.ldap.DialLDAP(cfg)

View File

@ -45,7 +45,7 @@ func (b *backend) pathRoles() *framework.Path {
Pattern: rolePrefix + framework.GenericNameRegex("name"),
Fields: map[string]*framework.FieldSchema{
"name": {
Type: framework.TypeString,
Type: framework.TypeLowerCaseString,
Description: "Name of the role",
},
"service_account_name": {

16
vendor/vendor.json vendored
View File

@ -1327,22 +1327,22 @@
"revisionTime": "2018-05-30T01:11:52Z"
},
{
"checksumSHA1": "vCJEdTDszlvEQUqrT/RC7Q31J3g=",
"checksumSHA1": "TXlbc4EPXue+Jz/HXl3NU5kEoUs=",
"path": "github.com/hashicorp/vault-plugin-secrets-ad/plugin",
"revision": "db025fb5e7a61e8dd984f59f2a445506d987b183",
"revisionTime": "2018-05-30T01:15:41Z"
"revision": "955ac20048397e0ec7c707704fb28cd7fc5cb3da",
"revisionTime": "2018-06-04T18:23:35Z"
},
{
"checksumSHA1": "qHGmA9y3hKMBSLRWLifD37EaHP4=",
"checksumSHA1": "w0TXZUy4HvuTrCxm32cVzkF3sEg=",
"path": "github.com/hashicorp/vault-plugin-secrets-ad/plugin/client",
"revision": "db025fb5e7a61e8dd984f59f2a445506d987b183",
"revisionTime": "2018-05-30T01:15:41Z"
"revision": "955ac20048397e0ec7c707704fb28cd7fc5cb3da",
"revisionTime": "2018-06-04T18:23:35Z"
},
{
"checksumSHA1": "f5N0jlhC8c2vq0zez81fezfas/o=",
"path": "github.com/hashicorp/vault-plugin-secrets-ad/plugin/util",
"revision": "db025fb5e7a61e8dd984f59f2a445506d987b183",
"revisionTime": "2018-05-30T01:15:41Z"
"revision": "955ac20048397e0ec7c707704fb28cd7fc5cb3da",
"revisionTime": "2018-06-04T18:23:35Z"
},
{
"checksumSHA1": "X9XW3xqAeOQqDdeJKzeqOYHn4Wo=",