mirror of
https://github.com/samba-team/samba.git
synced 2025-12-20 16:23:51 +03:00
join: Rename dc_join() so it looks like an object
dc_join() is creating an object, but it currently looks like it's just a function call. Rename it to look more object-like. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
@@ -21,7 +21,7 @@ import sys
|
||||
import shutil
|
||||
import os
|
||||
from samba.tests.dns_base import DNSTKeyTest
|
||||
from samba.join import dc_join
|
||||
from samba.join import DCJoinContext
|
||||
from samba.dcerpc import drsuapi, misc, dns
|
||||
from samba.credentials import Credentials
|
||||
|
||||
@@ -42,11 +42,12 @@ class JoinTestCase(DNSTKeyTest):
|
||||
self.netbios_name = "jointest1"
|
||||
logger = get_logger()
|
||||
|
||||
self.join_ctx = dc_join(server=self.server, creds=self.creds, lp=self.get_loadparm(),
|
||||
netbios_name=self.netbios_name,
|
||||
targetdir=self.tempdir,
|
||||
domain=None, logger=logger,
|
||||
dns_backend="SAMBA_INTERNAL")
|
||||
self.join_ctx = DCJoinContext(server=self.server, creds=self.creds,
|
||||
lp=self.get_loadparm(),
|
||||
netbios_name=self.netbios_name,
|
||||
targetdir=self.tempdir,
|
||||
domain=None, logger=logger,
|
||||
dns_backend="SAMBA_INTERNAL")
|
||||
self.join_ctx.userAccountControl = (samba.dsdb.UF_SERVER_TRUST_ACCOUNT |
|
||||
samba.dsdb.UF_TRUSTED_FOR_DELEGATION)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user