From: Rob van der Linde Date: Wed, 13 Mar 2024 10:07:52 +0000 (+1300) Subject: python: models: add Container model X-Git-Tag: tdb-1.4.11~1425 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52165b8eada72ac2d2e015faba372af8ae9c7284;p=thirdparty%2Fsamba.git python: models: add Container model Signed-off-by: Rob van der Linde Reviewed-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/domain/models/__init__.py b/python/samba/domain/models/__init__.py index 4e100574aaf..fe05bac1482 100644 --- a/python/samba/domain/models/__init__.py +++ b/python/samba/domain/models/__init__.py @@ -26,6 +26,7 @@ from .auth_silo import AuthenticationSilo from .claim_type import ClaimType from .computer import Computer from .constants import MODELS +from .container import Container from .gmsa import GroupManagedServiceAccount from .group import Group from .model import Model diff --git a/python/samba/domain/models/container.py b/python/samba/domain/models/container.py new file mode 100644 index 00000000000..5d3a0b247a4 --- /dev/null +++ b/python/samba/domain/models/container.py @@ -0,0 +1,32 @@ +# Unix SMB/CIFS implementation. +# +# Container model. +# +# Copyright (C) Catalyst.Net Ltd. 2024 +# +# Written by Rob van der Linde +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + +from .fields import DnField +from .model import Model + + +class Container(Model): + object_reference = DnField("msDS-ObjectReference") + + @staticmethod + def get_object_class(): + return "container"