diff --git a/builtin/credential/ldap/backend_test.go b/builtin/credential/ldap/backend_test.go index 1bce1546ad..0e4a0d1a31 100644 --- a/builtin/credential/ldap/backend_test.go +++ b/builtin/credential/ldap/backend_test.go @@ -1245,7 +1245,6 @@ func TestLdapAuthBackend_ConfigUpgrade(t *testing.T) { DerefAliases: "never", MaximumPageSize: 1000, }, - RotationSchedule: "", } configEntry, err := b.Config(ctx, configReq) diff --git a/builtin/credential/ldap/path_config.go b/builtin/credential/ldap/path_config.go index 53b4459924..6eba3b922b 100644 --- a/builtin/credential/ldap/path_config.go +++ b/builtin/credential/ldap/path_config.go @@ -120,13 +120,14 @@ func (b *backend) Config(ctx context.Context, req *logical.Request) (*ldapConfig persistNeeded = true } - if result.RotationSchedule == "" { - result.RotationSchedule = "0 0 0 0 0" - } + // leave these blank if unset, which would mean no rotation at all + //if result.RotationSchedule == "" { + // result.RotationSchedule = "0 0 0 0 0" + //} - if result.RotationWindow == 0 { - // default rotation windoe - } + //if result.RotationWindow == 0 { + // // default rotation windoe + //} if persistNeeded && (b.System().LocalMount() || !b.System().ReplicationState().HasState(consts.ReplicationPerformanceSecondary|consts.ReplicationPerformanceStandby)) { entry, err := logical.StorageEntryJSON("config", result)