當前位置: 首頁>>代碼示例>>Python>>正文


Python DSAdminHarness.createAndSetupReplica方法代碼示例

本文整理匯總了Python中bug_harness.DSAdminHarness.createAndSetupReplica方法的典型用法代碼示例。如果您正苦於以下問題:Python DSAdminHarness.createAndSetupReplica方法的具體用法?Python DSAdminHarness.createAndSetupReplica怎麽用?Python DSAdminHarness.createAndSetupReplica使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在bug_harness.DSAdminHarness的用法示例。


在下文中一共展示了DSAdminHarness.createAndSetupReplica方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1:

# 需要導入模塊: from bug_harness import DSAdminHarness [as 別名]
# 或者: from bug_harness.DSAdminHarness import createAndSetupReplica [as 別名]
	'suffix': basedn,
	'bename': "userRoot",
	'binddn': "cn=replrepl,cn=config",
	'bindcn': "replrepl",
	'bindpw': "replrepl",
    'bindmethod': 'SASL/GSSAPI',
    'starttls': True,
    'log'   : False
}

#os.environ['USE_DBX'] = "1"
m1 = DSAdmin.createAndSetupReplica({
	'newrootpw': 'password',
	'newhost': host1,
	'newport': port1,
	'newinst': 'm1',
	'newsuffix': basedn,
	'verbose': False,
    'no_admin': True
}, m1replargs
)
#del os.environ['USE_DBX']

m2replargs = m1replargs

#os.environ['USE_DBX'] = 1
m2 = DSAdmin.createAndSetupReplica({
	'newrootpw': 'password',
	'newhost': host2,
	'newport': port2,
	'newinst': 'm2',
	'newsuffix': basedn,
開發者ID:axdxnco,項目名稱:scripts,代碼行數:34,代碼來源:bug479254.py

示例2:

# 需要導入模塊: from bug_harness import DSAdminHarness [as 別名]
# 或者: from bug_harness.DSAdminHarness import createAndSetupReplica [as 別名]
    'ConfigFile': configfile,
    'no_admin': True
}

m1replargs = {
    'suffix': basedn,
    'bename': "userRoot",
    'binddn': "cn=replrepl,cn=config",
    'bindcn': "replrepl",
    'bindpw': "replrepl",
    'bindmethod': 'SASL/GSSAPI',
    'log'   : False
}

#os.environ['USE_GDB'] = "1"
m1 = DSAdmin.createAndSetupReplica(hostargs, m1replargs)
#del os.environ['USE_GDB']

hostargs['newhost'] = host2
hostargs['newport'] = port2
hostargs['newinst'] = 'm2'
m2replargs = m1replargs

m2 = DSAdmin.createAndSetupReplica(hostargs, m2replargs)

hostargs['newhost'] = host3
hostargs['newport'] = port3
hostargs['newinst'] = 'm3'
m3replargs = m2replargs

m3 = DSAdmin.createAndSetupReplica(hostargs, m3replargs)
開發者ID:directorymanager,項目名稱:scripts,代碼行數:33,代碼來源:bugreplgssapi.py

示例3:

# 需要導入模塊: from bug_harness import DSAdminHarness [as 別名]
# 或者: from bug_harness.DSAdminHarness import createAndSetupReplica [as 別名]
    'winsync': True,
    'newwingroups': 'true',
    'log': False
}

configfile = []
schemafile = []

#os.environ['USE_VALGRIND'] = "1"
os.environ['USE_GDB'] = "1"
ds = DSAdmin.createAndSetupReplica({
	'newrootpw': rootpw1,
	'newhost': host1,
	'newport': port1,
	'newinst': 'ds',
	'newsuffix': suffix,
	'verbose': False,
    'no_admin': True,
    'ConfigFile': configfile,
    'SchemaFile': schemafile
}, replargs
)
#os.environ['USE_VALGRIND'] = ''
#os.environ.pop('USE_VALGRIND')
#try:
#    foo = os.environ['USE_VALGRIND']
#except KeyError:
#    print "should no longer have USE_VALGRIND env. var"

if useds:
    ad = DSAdmin.createInstance({
        'newrootpw': rootpw2,
開發者ID:axdxnco,項目名稱:scripts,代碼行數:34,代碼來源:bug476127.py

示例4:

# 需要導入模塊: from bug_harness import DSAdminHarness [as 別名]
# 或者: from bug_harness.DSAdminHarness import createAndSetupReplica [as 別名]
#os.environ['USE_DBX'] = "1"
m1replargs = {
	'suffix': "dc=example,dc=com",
	'bename': "userRoot",
	'binddn': "cn=replrepl,cn=config",
	'bindcn': "replrepl",
	'bindpw': "replrepl"
}

m1 = DSAdmin.createAndSetupReplica({
	'cfgdshost': host1,
	'cfgdsport': cfgport,
	'cfgdsuser': 'admin',
	'cfgdspwd': 'admin',
	'newrootpw': 'password',
	'newhost': host1,
	'newport': port1,
	'newinst': 'm1',
	'newsuffix': 'dc=example,dc=com',
	'verbose': True,
    'have_admin': True
}, m1replargs)
#del os.environ['USE_DBX']

#os.environ['USE_DBX'] = 1
m2replargs = {
	'suffix': "dc=example,dc=com",
	'bename': "userRoot",
	'binddn': "cn=replrepl,cn=config",
	'bindcn': "replrepl",
	'bindpw': "replrepl"
開發者ID:axdxnco,項目名稱:scripts,代碼行數:33,代碼來源:bug359261.py

示例5:

# 需要導入模塊: from bug_harness import DSAdminHarness [as 別名]
# 或者: from bug_harness.DSAdminHarness import createAndSetupReplica [as 別名]
basedn = 'dc=example,dc=com'
replargs = {}
srvs = []
m1replargs = {
	'suffix': basedn,
	'bename': "userRoot",
	'binddn': "cn=replrepl,cn=config",
	'bindcn': "replrepl",
	'bindpw': "replrepl"
}
os.environ['USE_GDB'] = "1"
m1 = DSAdmin.createAndSetupReplica({
	'newrootpw': 'password',
	'newhost': host1,
	'newport': port1,
	'newinst': 'm1',
	'newsuffix': basedn,
    'no_admin': True
}, m1replargs
)
del os.environ['USE_GDB']
replargs[m1] = m1replargs
srvs.append(m1)

m2replargs = m1replargs
m2 = DSAdmin.createAndSetupReplica({
	'newrootpw': 'password',
	'newhost': host2,
	'newport': port2,
	'newinst': 'm2',
	'newsuffix': basedn,
開發者ID:axdxnco,項目名稱:scripts,代碼行數:33,代碼來源:bug578167.py

示例6:

# 需要導入模塊: from bug_harness import DSAdminHarness [as 別名]
# 或者: from bug_harness.DSAdminHarness import createAndSetupReplica [as 別名]
m1replargs = {
	'suffix': "dc=example,dc=com",
	'bename': "userRoot",
	'binddn': "cn=replrepl,cn=config",
	'bindcn': "replrepl",
	'bindpw': "replrepl",
    'log'   : True
}

#os.environ['USE_DBX'] = "1"
m1 = DSAdmin.createAndSetupReplica({
	'newrootpw': 'password',
	'newhost': host1,
	'newport': cfgport+10,
	'newinst': 'm1',
	'newsuffix': 'dc=example,dc=com',
	'verbose': True,
    'no_admin': True
}, m1replargs
)
#del os.environ['USE_DBX']

m2replargs = {
	'suffix': "dc=example,dc=com",
	'bename': "userRoot",
	'binddn': "cn=replrepl,cn=config",
	'bindcn': "replrepl",
	'bindpw': "replrepl",
    'log'   : True
}
#os.environ['USE_DBX'] = 1
開發者ID:axdxnco,項目名稱:scripts,代碼行數:33,代碼來源:bug233642-mod.py


注:本文中的bug_harness.DSAdminHarness.createAndSetupReplica方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。