Return warning about ACLing the LDAP configuration endpoint.

Fixes #1263
This commit is contained in:
Jeff Mitchell 2016-08-08 10:18:36 -04:00
parent b5eb8061a3
commit 1f198e9256
1 changed files with 4 additions and 2 deletions

View File

@ -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
}
/*