如何配置 Apache 来针对 Oracle dbms 进行身份验证?
加载这些模块:
LoadModule authn_dbd_module modules/mod_authn_dbd.so
LoadModule dbd_module modules/mod_dbd.so
并配置目录(和mod_dbd params
):
# mod_dbd configuration
DBDriver oracle
DBDParams "server=XXX:1521 dbname=orcl user=IDM_ANTIVIR password=xxx"
DBDMin 4
DBDKeep 8
DBDMax 20
DBDExptime 300
<Directory F:/Projects/>
# core authentication and mod_auth_basic configuration
# for mod_authn_dbd
AuthType Basic
AuthName "My Server"
AuthBasicProvider dbd
# core authorization configuration
Require valid-user
# mod_authn_dbd SQL query to authenticate a user
AuthDBDUserPWQuery \
"SELECT PASSWORD FROM IDM.VW_ANTIVIR_PASSWORD WHERE LDAPUID = %s;"
</Directory>
结果出现以下错误:
[Mon Jul 28 17:28:55 2014] [error] (OS 126)Das angegebene Modul wurde nicht gefunden. : DBD: mod_dbd not compatible with APR in get_driver
[Mon Jul 28 17:28:55 2014] [error] (OS 126)Das angegebene Modul wurde nicht gefunden. : DBD: failed to initialise
apr_dbd_oracle-1.dll
存在于 Apache bin 目录中。
缺少了什么?我该如何修复此错误?