summaryrefslogtreecommitdiffstats
path: root/setupscript4.cmd.in
blob: 4f32d91da3f100e034a2a22c21a0b9639b50acf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
call @SETUP_PATH@\passsync-vars.cmd
for %%i in (@SETUP_PATH@\*PassSync*.msi) do msiexec /i %%i /quiet /passive /log c:\passsync-msi.log
reg add HKLM\Software\PasswordSync /f /v "Host Name" /t REG_SZ /d %DS_FQDN%
reg add HKLM\Software\PasswordSync /f /v "Password" /t REG_SZ /d "%PASSSYNC_PW%"
reg add HKLM\Software\PasswordSync /f /v "Port Number" /t REG_SZ /d %DS_PORT%
reg add HKLM\Software\PasswordSync /f /v "Search Base" /t REG_SZ /d "%DS_SUFFIX%"
reg add HKLM\Software\PasswordSync /f /v "User Name" /t REG_SZ /d "%PASSSYNC_DN%"
reg add HKLM\Software\PasswordSync /f /v "Password Field" /t REG_SZ /d %PASSSYNC_PWATTR%
reg add HKLM\Software\PasswordSync /f /v "Log Level" /t REG_SZ /d %PASSSYNC_LOGLEVEL%
reg add HKLM\Software\PasswordSync /f /v "Time To Live" /t REG_SZ /d %PASSSYNC_TTL%

setlocal ENABLEEXTENSIONS
for /f "skip=2 tokens=1-3*" %%a in ('reg query HKLM\Software\PasswordSync /v "Install Path"') do set instpath=%%d
cd "%instpath%"
certutil.exe -d . -A -n "DS CA cert" -t CT,, -a -i @SETUP_PATH@\ds-ca-cert.cer
certutil.exe -d . -L -n "DS CA cert"

@SETUP_PATH@\nextscript.cmd 5 "Reboot to complete PassSync installation"