瀏覽代碼

Fix JET OLEDB write access: add User Id=admin to connection string

IIS ApplicationPoolIdentity defaults to read-only JET access without explicit
credentials. Adding User Id=admin;Password=; gives the admin user context.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
pull/5/head
Nano 6 天之前
父節點
當前提交
86ef7b7113
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      ci/deploy-aspblogbrainordure-test.ps1

+ 1
- 1
ci/deploy-aspblogbrainordure-test.ps1 查看文件

@@ -112,7 +112,7 @@ if (Test-Path $dbSrc) {
$webConfigPath = Join-Path $publicDst "web.config"
if (Test-Path $webConfigPath) {
$wc = [System.IO.File]::ReadAllText($webConfigPath)
$newConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=$WEBROOT\db\webdata.mdb;Persist Security Info=False;"
$newConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=$WEBROOT\db\webdata.mdb;User Id=admin;Password=;Persist Security Info=False;"
$wc = [regex]::Replace($wc, 'Provider=Microsoft\.(ACE\.OLEDB\.12\.0|Jet\.OLEDB\.4\.0)[^"]+', $newConn)
if ($wc -notmatch 'enableParentPaths') {
$wc = $wc -replace '<system.webServer>', '<system.webServer><asp enableParentPaths="true" />'


Loading…
取消
儲存

Powered by TurnKey Linux.