Properly convert the realm to a DS instance name

451014
This commit is contained in:
Rob Crittenden 2008-07-01 10:09:37 -04:00
parent ec597b0ef1
commit e9196e2d93

View File

@ -136,7 +136,7 @@ def main():
if options.dirsrv:
dm_password = getpass.getpass("Directory Manager password: ")
realm = get_realm_name()
dirname = dsinstance.config_dirname(realm)
dirname = dsinstance.config_dirname(dsinstance.realm_to_serverid(realm))
server_cert = import_cert(dirname, pkcs12_fname)
set_ds_cert_name(server_cert[0], dm_password)