Return warning about ACLing the LDAP configuration endpoint.
Fixes #1263
This commit is contained in:
parent
b5eb8061a3
commit
1f198e9256
|
@ -158,9 +158,11 @@ func (b *backend) pathConfigRead(
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return &logical.Response{
|
resp := &logical.Response{
|
||||||
Data: structs.New(cfg).Map(),
|
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