예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
    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)
예제 #4
0
    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)