Use better error message on LDAP renew failure

This commit is contained in:
Jeff Mitchell 2016-03-07 09:34:16 -05:00
parent 99e61b595f
commit 4a3d3ef300

View file

@ -76,7 +76,7 @@ func (b *backend) pathLoginRenew(
sort.Strings(policies) sort.Strings(policies)
if strings.Join(policies, ",") != prevpolicies { if strings.Join(policies, ",") != prevpolicies {
return logical.ErrorResponse("policies have changed, revoking login"), nil return logical.ErrorResponse("policies have changed, not renewing"), nil
} }
return framework.LeaseExtend(0, 0, b.System())(req, d) return framework.LeaseExtend(0, 0, b.System())(req, d)