From: Rob van der Linde Date: Fri, 23 Feb 2024 05:43:38 +0000 (+1300) Subject: netcmd: models: set the default for managed password interval on the model X-Git-Tag: tdb-1.4.11~1580 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e41114ad5b1982e629b83efac5b5d2f23fee2c96;p=thirdparty%2Fsamba.git netcmd: models: set the default for managed password interval on the model This is to avoid having to provide a default in multiple places Signed-off-by: Rob van der Linde Reviewed-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- diff --git a/python/samba/netcmd/domain/models/gmsa.py b/python/samba/netcmd/domain/models/gmsa.py index 49f147e72aa..570e40e44a8 100644 --- a/python/samba/netcmd/domain/models/gmsa.py +++ b/python/samba/netcmd/domain/models/gmsa.py @@ -32,7 +32,8 @@ from .types import SupportedEncryptionTypes class GroupManagedServiceAccount(Computer): """A GroupManagedServiceAccount is a type of Computer which is also a User.""" - managed_password_interval = IntegerField("msDS-ManagedPasswordInterval") + managed_password_interval = IntegerField("msDS-ManagedPasswordInterval", + default=30) dns_host_name = StringField("dNSHostName") group_msa_membership = SDDLField("msDS-GroupMSAMembership", default=GROUP_MSA_MEMBERSHIP_DEFAULT)