Merge pull request #1698 from hashicorp/issue-1263
Return warning about ACLing the LDAP configuration endpoint.
This commit is contained in:
commit
2c02f78144
|
@ -158,9 +158,11 @@ func (b *backend) pathConfigRead(
|
|||
return nil, nil
|
||||
}
|
||||
|
||||
return &logical.Response{
|
||||
resp := &logical.Response{
|
||||
Data: structs.New(cfg).Map(),
|
||||
}, nil
|
||||
}
|
||||
resp.AddWarning("Read access to this endpoint should be controlled via ACLs as it will return the configuration information as-is, including any passwords.")
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue