@@ -475,8 +475,8 @@ Private Function HexStrToSIDStr(strValue)
475475End Function
476476
477477
478- Function GetCredential (strPassword, strAccount)
479- Call DebugLog( "GetCredential : " & strPassword)
478+ Function GetLookup (strPassword, strAccount)
479+ Call DebugLog( "GetLookup : " & strPassword)
480480 Dim strAcctName, strCredential
481481
482482 strCredential = GetBuildfileValue(strPassword)
@@ -496,7 +496,7 @@ Function GetCredential(strPassword, strAccount)
496496 strCredential = GetXMLParm(objLookup, UCase(strAcctName), "lookup" )
497497 End Select
498498
499- GetCredential = strCredential
499+ GetLookup = strCredential
500500
501501End Function
502502
@@ -650,7 +650,7 @@ Sub SetCertAuth(strCertThumb, strAccount)
650650 Dim strPKFile
651651
652652 strCmd = "$CertThumb = '" & strCertThumb & "' ;"
653- strCmd = strCmd & "(Get-ChildItem -Path Cert:\LocalMachine\My | Where-Object {$_.Thumbprint -like $CertThumb}).privatekey.cspkeycontainerinfo.uniquekeycontainername "
653+ strCmd = strCmd & "(Get-ChildItem -Path Cert:\LocalMachine\My | Where-Object {$_.Thumbprint -like $CertThumb}).PrivateKey.CspKeyContainerInfo.UniqueKeyContainerName "
654654 strPKFile = GetPSData(strCmd)
655655
656656 strPath = GetBuildfileValue( "VolSys" ) & ":\ProgramData\Microsoft\Crypto\RSA\MachineKeys\" & strPKFile
@@ -1024,7 +1024,9 @@ Sub SetSSLCert()
10241024 Case GetBuildfileValue( "SSLSelfCert" ) = "YES"
10251025 strCmd = "POWERSHELL $UserDNSDomain = '*." & strUserDNSDomain & "' ;"
10261026 strCmd = strCmd & "$SSLCert = '" & strSSLCert & "' ;"
1027- strCmd = strCmd & "New-SelfSignedCertificate -DNSName $UserDNSDomain -FriendlyName $SSLCert -CertStoreLocation 'cert:\LocalMachine\My' -NotBefore '2001-01-01T00:00:00' -NotAfter '2999-12-31T23:59:59' "
1027+ strCmd = strCmd & "New-SelfSignedCertificate -DNSName $UserDNSDomain -FriendlyName $SSLCert -CertStoreLocation 'cert:\LocalMachine\My' "
1028+ strCmd = strCmd & "-NotBefore '2001-01-01T00:00:00' -NotAfter '2999-12-31T23:59:59' "
1029+ strCmd = strCmd & "-KeyExportPolicy 'Exportable' -KeySpec 'KeyExchange' -KeyLength 2048 -KeyUsageProperty 'All' "
10281030 Call Util_RunExec(strCmd, "" , "" , - 1 ) ' Attributes: RSA, 2048 bit; Defaults: Client Authentication, Server Authentication; Usable for: Digital Signature, Key Encipherment
10291031 Case CheckFile(strSSLFile) = True
10301032 strCmd = "$Password = '" & strSSLCertPassword & "' ;$SSLFile = '" & strSSLFile & "' ;"
@@ -1033,7 +1035,6 @@ Sub SetSSLCert()
10331035 strCmd = "POWERSHELL $SSLCertThumb = '" & LCase(strSSLCertThumb) & "' ;$SSLCert = '" & strSSLCert & "' ;"
10341036 strCmd = strCmd & "$Cert = (Get-ChildItem -Path Cert:\LocalMachine\My | Where-Object {$_.Thumbprint -like $SSLCertThumb}) ;$Cert.FriendlyName = $SSLCert ;"
10351037 Call Util_RunExec(strCmd, "" , "" , - 1 )
1036- ' Call SetBuildMessage(strMsgError, "/SSLCertFile: processing is not yet supported in SQL FineBuild")
10371038 Case Else
10381039 Call SetBuildMessage(strMsgError, "Unable to find /SSLCertFile:" & strSSLCertFile)
10391040 End Select
@@ -1090,15 +1091,15 @@ Function FormatAccount(strAccount)
10901091End Function
10911092
10921093Function FormatHost(strHostParm, strFDQN)
1093- FormatHost = FBManageSecurity.FormatHost(strHostParm, strFDQN)
1094+ FormatHost = FBManageSecurity.FormatHost(strHostParm, strFDQN)
10941095End Function
10951096
10961097Function GetAccountAttr(strUserAccount, strUserDNSDomain, strUserAttr)
10971098 GetAccountAttr = FBManageSecurity.GetAccountAttr(strUserAccount, strUserDNSDomain, strUserAttr)
10981099End Function
10991100
11001101Function GetCertAttr(strCertName, strCertAttr)
1101- GetCertAttr = FBManageSecurity.GetCertAttr(strCertName, strCertAttr)
1102+ GetCertAttr = FBManageSecurity.GetCertAttr(strCertName, strCertAttr)
11021103End Function
11031104
11041105Function GetDomainAttr(strDomAttr)
@@ -1110,7 +1111,11 @@ Function GetOUAttr(strOUPath, strUserDNSDomain, strOUAttr)
11101111End Function
11111112
11121113Function GetCredential(strPassword, strAccount)
1113- GetCredential = FBManageSecurity.GetCredential(strPassword, strAccount)
1114+ GetCredential = FBManageSecurity.GetLookup(strPassword, strAccount)
1115+ End Function
1116+
1117+ Function GetLookup(strPassword, strAccount)
1118+ GetLookup = FBManageSecurity.GetLookup(strPassword, strAccount)
11141119End Function
11151120
11161121Sub ProcessUser(strLabel, strDescription, strProcess)
0 commit comments