

def run(self, domain, target_dir=None, credopts=None, sambaopts=None, versionopts=None, force=False):
    if (not force):
        raise CommandError('samba-tool vampire is deprecated, please use samba-tool domain join. Use --force to override')
    lp = sambaopts.get_loadparm()
    creds = credopts.get_credentials(lp)
    net = Net(creds, lp, server=credopts.ipaddress)
    (domain_name, domain_sid) = net.vampire(domain=domain, target_dir=target_dir)
    self.outf.write(('Vampired domain %s (%s)\n' % (domain_name, domain_sid)))

dataset/ETHPy150Open byt3bl33d3r/pth-toolkit/lib/python2.7/site-packages/samba/netcmd/vampire.py cmd_vampire.run/original