def joinDomain(self, name, domain, ou, account, password): ver = operations.getWindowsVersion() ver = ver[0] * 10 + ver[1] logger.info('Starting joining domain {} with name {} (detected operating version: {})'.format( domain, name, ver)) # Accepts one step joinDomain, also remember XP is no more supported by # microsoft, but this also must works with it because will do a "multi # step" join if ver >= 60: self.oneStepJoin(name, domain, ou, account, password) else: self.multiStepJoin(name, domain, ou, account, password)
def joinDomain(self, name, domain, ou, account, password): ver = operations.getWindowsVersion() ver = ver[0] * 10 + ver[1] logger.info( 'Starting joining domain {} with name {} (detected operating version: {})' .format(domain, name, ver)) # Accepts one step joinDomain, also remember XP is no more supported by # microsoft, but this also must works with it because will do a "multi # step" join if ver >= 60: self.oneStepJoin(name, domain, ou, account, password) else: self.multiStepJoin(name, domain, ou, account, password)
def joinDomain(self, name, domain, ou, account, password): ver = operations.getWindowsVersion() ver = ver[0] * 10 + ver[1] logger.debug('Starting joining domain {} with name {} (detected operating version: {})'.format( domain, name, ver)) # If file c:\compat.bin exists, joind domain in two steps instead one # Accepts one step joinDomain, also remember XP is no more supported by # microsoft, but this also must works with it because will do a "multi # step" join if ver >= 60 and store.useOldJoinSystem() is False: self.oneStepJoin(name, domain, ou, account, password) else: logger.info('Using multiple step join because configuration requests to do so') self.multiStepJoin(name, domain, ou, account, password)