]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
netcmd: models: add AccountType enum to User model
authorRob van der Linde <rob@catalyst.net.nz>
Thu, 18 Jan 2024 02:44:18 +0000 (15:44 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 8 Feb 2024 02:48:44 +0000 (02:48 +0000)
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/domain/models/user.py

index 7b0785a0fb303b1e32eee2a783234b5a62da6158..40795a44e40c5b1760c07c91eb4b330d953906af 100644 (file)
@@ -24,12 +24,14 @@ from ldb import Dn
 
 from samba.dsdb import DS_GUID_USERS_CONTAINER
 
-from .fields import DnField, SIDField, StringField
+from .fields import DnField, EnumField, SIDField, StringField
 from .model import Model
+from .types import AccountType
 
 
 class User(Model):
     username = StringField("sAMAccountName")
+    account_type = EnumField("sAMAccountType", AccountType)
     assigned_policy = DnField("msDS-AssignedAuthNPolicy")
     assigned_silo = DnField("msDS-AssignedAuthNPolicySilo")
     object_sid = SIDField("objectSid")