...
< samSettings MsCAConnectorId = "{1A30B883-CD69-4cbb-8D61-E72E9697D8B1}"
connectionString = "C:\ProgramData\SafeNet\Authentication\SAM\demo.local.xml" />
< migrateSAMSettings ignoreCMCertificateTemplateNotFoundError = "true"
notIssuedTokenAdminPin = "adminpass"
issuedTokenAdminPin = "adminpass2" >
< tokenTypes >
< tokenType model = "Token 12.0.0.0 12.0.12"
productName = "SafeNet eToken 5110"
color = "8"
atr = "3bd5180081313a7d8073c8211030" />
< tokenType model = "Token JC"
productName = "eToken PRO Java 72K OS755"
color = "4"
atr = "3bd518008131fe7d8073c82110f4" />
</ migrateSAMSettings >
< adPersistenceSettings path="LDAP:// CN = Indeed CM, CN = Indeed Identity,
DC = demo , DC = local " userName = "DEMO\cmadmin" password = "Password1"
cryptoAlgName = "AES"
cryptoKey = "11d2f5051684451860ad177ebc39b55cacaf2a0a843b05ddf273b955c93ae015" />
< adUserCatalogSettings >
< rootContainers >
< container path = "LDAP://OU=SAM_USERS,DC=demo,DC=local" userName = "DEMO\cmadmin"
password = "Password1" />
</ rootContainers >
</ adUserCatalogSettings >
|
Заполнение файла конфигурации unity.config
Откройте файл ...SAMMigration\unity.config от имени администратора в текстовом редакторе (например, в Блокнот) и заполните секцию container:
- Все строки до <register type="ISAMDbContext". . . /> должны совпадать с теми, что указаны в файле конфигурации Консоли управления Рутокен KeyBox (icm\unity.config).
Добавлять секции, которых по умолчанию нет в unity.config утилиты миграции (но есть в icm\unity.config) не нужно.
- register type="IMigrateReporter" mapTo="IndeedCM.Migrate.SAM.Reporter.CSVMigrateReporter, IndeedCM.Migrate.SAM"/> – определяет режим вывода отчета по работе утилиты миграции.
Если секция не закомментирована символами <! - - . . . - ->, то отчет будет записываться в csv-файл, созданный в папке расположения утилиты с именем IndeedCM.Migrate.SAM.Report_dd-MM-yyyy_HH-mm-ss.csv. По умолчанию отчет не будет создаваться.
- <register type="IMigrateReporter" mapTo="IndeedCM.Migrate.SAM.Reporter.NullMigrateReporter, IndeedCM.Migrate.SAM"/> – отключает создание отчета о работе утилиты миграции данных. По умолчанию секция закомментирована символами <! - - . . . - ->.
Использование двух активных секций с параметрами IndeedCM.Migrate.SAM.Reporter.CSVMigrateReporter, IndeedCM.Migrate.SAM и IndeedCM.Migrate.SAM.Reporter.NullMigrateReporter, IndeedCM.Migrate.SAM не допускается. Одна из них обязательно должна быть закомментирована или удалена.
Сохраните внесенные изменения.
В примере RutikenKeyBox развернут с использованием хранилища данных и каталога пользователей в Active Directory, разрешено создание отчета о работе утилиты миграции в csv-файле.
Пример заполненной секции файла unity.config:
< container >
< register type = "ICardRepository" mapTo = "IndeedCM.Persistence.AD.CardRepository, IndeedCM.Persistence.AD" />
< register type = "IUserDataRepository" mapTo = "IndeedCM.Persistence.AD.UserDataRepository, IndeedCM.Persistence.AD" />
< register type = "IPolicyRepository" mapTo = "IndeedCM.Persistence.AD.PolicyRepository, IndeedCM.Persistence.AD" />
< register type = "ICardTypeRepository" mapTo = "IndeedCM.Persistence.AD.CardTypeRepository, IndeedCM.Persistence.AD" />
< register type = "ILicenseRepository" mapTo = "IndeedCM.Persistence.AD.LicenseRepository, IndeedCM.Persistence.AD" />
< register type = "ISkziRepository" mapTo = "IndeedCM.Persistence.AD.SkziRepository, IndeedCM.Persistence.AD" />
< register type = "IUserCatalog" mapTo = "IndeedCM.UserCatalog.AD.UserCatalog, IndeedCM.UserCatalog.AD" />
< register type = "ISAMDbContext" mapTo = "IndeedCM.Migrate.SAM_8_0.Core.SAMDbContext, IndeedCM.Migrate.SAM_8_0" />
< register type = "ISAMHelpers" mapTo = "IndeedCM.Migrate.SAM_8_0.Utils.SAMHelpers, IndeedCM.Migrate.SAM_8_0" />
< register type = "IMigrateReporter" mapTo = "IndeedCM.Migrate.SAM.Reporter.CSVMigrateReporter, IndeedCM.Migrate.SAM" />
</ container >
|