import samba.getopt as options
from samba.netcmd import Command, CommandError, Option, SuperCommand
-from samba.netcmd.domain.models import (AuthenticationPolicy,
- AuthenticationSilo, Group,
- MAX_TGT_LIFETIME, MIN_TGT_LIFETIME,
- StrongNTLMPolicy)
-from samba.netcmd.domain.models.exceptions import ModelError
+from samba.domain.models import (AuthenticationPolicy,
+ AuthenticationSilo, Group,
+ MAX_TGT_LIFETIME, MIN_TGT_LIFETIME,
+ StrongNTLMPolicy)
+from samba.domain.models.exceptions import ModelError
from samba.netcmd.validators import Range
import samba.getopt as options
from samba.netcmd import Command, CommandError, Option, SuperCommand
-from samba.netcmd.domain.models import AuthenticationPolicy, AuthenticationSilo
-from samba.netcmd.domain.models.exceptions import ModelError
+from samba.domain.models import AuthenticationPolicy, AuthenticationSilo
+from samba.domain.models.exceptions import ModelError
from .silo_member import cmd_domain_auth_silo_member
import samba.getopt as options
from samba.netcmd import Command, CommandError, Option, SuperCommand
-from samba.netcmd.domain.models import AuthenticationSilo, User
-from samba.netcmd.domain.models.exceptions import ModelError
+from samba.domain.models import AuthenticationSilo, User
+from samba.domain.models.exceptions import ModelError
class cmd_domain_auth_silo_member_grant(Command):
import samba.getopt as options
from samba.netcmd import Command, CommandError, Option, SuperCommand
-from samba.netcmd.domain.models import AttributeSchema, ClassSchema,\
- ClaimType, ValueType
-from samba.netcmd.domain.models.exceptions import ModelError
+from samba.domain.models import AttributeSchema, ClassSchema, ClaimType, ValueType
+from samba.domain.models.exceptions import ModelError
class cmd_domain_claim_claim_type_create(Command):
import samba.getopt as options
from samba.netcmd import Command, CommandError, Option, SuperCommand
-from samba.netcmd.domain.models import ValueType
-from samba.netcmd.domain.models.exceptions import ModelError
+from samba.domain.models import ValueType
+from samba.domain.models.exceptions import ModelError
class cmd_domain_claim_value_type_list(Command):
from samba.getopt import CredentialsOptions, HostOptions, Option, SambaOptions
from samba.netcmd import Command, CommandError, SuperCommand
-from samba.netcmd.domain.models import (Group, GroupManagedServiceAccount,
- Model, User)
-from samba.netcmd.domain.models.exceptions import ModelError
+from samba.domain.models import Group, GroupManagedServiceAccount, Model, User
+from samba.domain.models.exceptions import ModelError
class cmd_service_account_group_msa_membership_show(Command):
from samba.getopt import CredentialsOptions, HostOptions, Option, SambaOptions
from samba.netcmd import Command, CommandError
-from samba.netcmd.domain.models import (AccountType, Computer, Group,
- GroupManagedServiceAccount,
- SupportedEncryptionTypes, User)
-from samba.netcmd.domain.models.exceptions import ModelError
+from samba.domain.models import (AccountType, Computer, Group,
+ GroupManagedServiceAccount,
+ SupportedEncryptionTypes, User)
+from samba.domain.models.exceptions import ModelError
class cmd_service_account_list(Command):
import samba.getopt as options
from samba import version
from samba.netcmd import Command
-from samba.netcmd.domain.models import MODELS
+from samba.domain.models import MODELS
class cmd_shell(Command):
SuperCommand,
Option,
)
-from samba.netcmd.domain.models import Site, Subnet
-from samba.netcmd.domain.models.exceptions import ModelError
+from samba.domain.models import Site, Subnet
+from samba.domain.models.exceptions import ModelError
class cmd_sites_list(Command):
import samba.getopt as options
from samba.netcmd import Command, CommandError, Option, SuperCommand
-from samba.netcmd.domain.models import AuthenticationPolicy, User
-from samba.netcmd.domain.models.exceptions import ModelError
+from samba.domain.models import AuthenticationPolicy, User
+from samba.domain.models.exceptions import ModelError
class cmd_user_auth_policy_assign(Command):
import samba.getopt as options
from samba.netcmd import Command, CommandError, Option, SuperCommand
-from samba.netcmd.domain.models import AuthenticationSilo, User
-from samba.netcmd.domain.models.exceptions import ModelError
+from samba.domain.models import AuthenticationSilo, User
+from samba.domain.models.exceptions import ModelError
class cmd_user_auth_silo_assign(Command):
from samba.dcerpc import netlogon, security
from samba.dcerpc import windows_event_ids as win_event
from samba.ndr import ndr_pack
-from samba.netcmd.domain.models import AuthenticationPolicy, AuthenticationSilo
+from samba.domain.models import AuthenticationPolicy, AuthenticationSilo
import samba.tests
import samba.tests.krb5.kcrypto as kcrypto
from samba.join import DCJoinContext
from samba.ndr import ndr_pack, ndr_unpack
from samba import net
-from samba.netcmd.domain.models import AuthenticationPolicy, AuthenticationSilo
+from samba.domain.models import AuthenticationPolicy, AuthenticationSilo
from samba.param import LoadParm
from samba.samdb import SamDB, dsdb_Dn
from samba.dcerpc import security
from samba.ndr import ndr_pack, ndr_unpack
-from samba.netcmd.domain.models.exceptions import ModelError
+from samba.domain.models.exceptions import ModelError
from samba.samdb import SamDB
from samba.sd_utils import SDUtils
import json
from unittest.mock import patch
-from samba.netcmd.domain.models.exceptions import ModelError
+from samba.domain.models.exceptions import ModelError
from samba.samdb import SamDB
from samba.sd_utils import SDUtils
from ldb import FLAG_MOD_ADD, MessageElement, SCOPE_ONELEVEL
from samba.dcerpc import security
from samba.dcerpc.misc import GUID
-from samba.netcmd.domain.models import (AccountType, Computer, Group, Site,
+from samba.domain.models import (AccountType, Computer, Group, Site,
User, StrongNTLMPolicy, fields)
from samba.ndr import ndr_pack, ndr_unpack
import json
import os
-from samba.netcmd.domain.models import Group, GroupManagedServiceAccount, User
-from samba.netcmd.domain.models.constants import GROUP_MSA_MEMBERSHIP_DEFAULT
+from samba.domain.models import Group, GroupManagedServiceAccount, User
+from samba.domain.models.constants import GROUP_MSA_MEMBERSHIP_DEFAULT
from .base import SambaToolCmdTest
from ldb import SCOPE_ONELEVEL
-from samba.netcmd.domain.models import Group
+from samba.domain.models import Group
from .base import SambaToolCmdTest
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-from samba.netcmd.domain.models import AuthenticationPolicy, User
+from samba.domain.models import AuthenticationPolicy, User
from .silo_base import SiloTest
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-from samba.netcmd.domain.models import AuthenticationSilo, User
+from samba.domain.models import AuthenticationSilo, User
from .silo_base import SiloTest
from samba.credentials import MUST_USE_KERBEROS
from samba.dcerpc import security
from samba.dsdb import UF_WORKSTATION_TRUST_ACCOUNT, UF_NORMAL_ACCOUNT
-from samba.netcmd.domain.models import User
+from samba.domain.models import User
from samba.ndr import ndr_pack, ndr_unpack
from samba.tests import connect_samdb, delete_force
from samba.credentials import MUST_USE_KERBEROS
from samba.dcerpc import security, samr
from samba.dsdb import UF_WORKSTATION_TRUST_ACCOUNT
-from samba.netcmd.domain.models import User
+from samba.domain.models import User
from samba.ndr import ndr_pack, ndr_unpack
from samba.nt_time import nt_time_from_datetime
from samba.tests import connect_samdb, connect_samdb_env, delete_force