我正在尝试为我的一个项目在ORACLE HTTP SERVER中启用LDAP身份验证, OHS实例被创建为没有sudo特权的非root用户,因此我已经以root用户身份安装了mod_ldap 并将必要的文件复制到OHS实例路径
下面是我的配置,我不断收到“未定义符号:apr_ldap_init”错误
> "2018-11-05 11:18:55> <INFO> <OHS-0> <httpd: Syntax error on line 82
> of httpd.conf: Cannot load mod_ldap.so into server: mod_ldap.so:
> undefined symbol: apr_ldap_init"
我已经无所畏惧,无所事事,任何帮助,我们都很感激
{PRODUCT_HOME}/ohs/modules/
-------------
-rwxr-xr-x. 1 netauto netauto 76K Nov 2 18:51 mod_ldap.so
-rwxr-xr-x. 1 netauto netauto 12K Nov 2 18:53 apr_ldap-1.so
lrwxrwxrwx. 1 netauto netauto 68 Nov 2 19:02 apr_ldap.so -> /apr_ldap-1.so
SetEnv LD_LIBRARY_PATH /usr/lib64/:${PRODUCT_HOME}/ohs/include/:{PRODUCT_HOME}/ohs/modules:/lib64
LoadModule apr_ldap_module "${PRODUCT_HOME}/modules/apr_ldap.so"
LoadModule ldap_module "${PRODUCT_HOME}/modules/mod_ldap.so"
<Location /path/of/the/file/>
AuthType Basic
AuthName "Name"
AuthBasicProvider ldap
AuthLDAPBindAuthoritative On
AuthLDAPBindDN "bind-dn"
AuthLDAPBindPassword "bind_password"
AuthLDAPURL "ldaps://" SSL
Require ldap-group
</Location>
<2018-11-05 11:18:55> <INFO> <OHS-0> <httpd: Syntax error on line 82 of httpd.conf: Cannot load mod_ldap.so into server: mod_ldap.so: undefined symbol: apr_ldap_init>
注意: 我已经用同样的方法安装了mod_auth_form,没有任何问题。