免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 12252 | 回复: 24
打印 上一主题 下一主题

[ldap] 装apache的认证模块mod_auth_ldap [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-05-14 14:39 |只看该作者 |倒序浏览
小弟最近在安装apache的认证模块mod_auth_ldap,可是怎么都装不上.
我先是下了rpm的包,有两个版本mod_auth_ldap-2.4.1-1.i386.rpm和mod_auth_ldap2-2.12-1.i386.rpm.这两个版本我都安装过,mod_auth_ldap-2.4.1-1.i386.rpm安装后启动apache时的提示错误是undefind....ap_... ! mod_auth_ldap2-2.12-1.i386.rpm 安装后启动apache时的提示错误是apache的版本太低! 然后我就下了高版本的apache. httpd-2.0.49-1.i386.rpm,但是又装不上,我又下了httpd-2.0.49.tar.gz,这个版本在安装时可以加上--enable mod_auth_ldap 这个参数,可是安装后没有这个模块!

我用./configure --with-activate --with-apxs=/usr/sbin/apxs --with-ldap --enable-ldap --enable-auth-ldap
make
make install


libtool: install: warning: `modules/aaa/mod_access.la' has not been installed in
`/usr/local/apache2/modules'
libtool: install: warning: `modules/aaa/mod_auth.la' has not been installed in `
/usr/local/apache2/modules'
libtool: install: warning: `modules/filters/mod_include.la' has not been install
ed in `/usr/local/apache2/modules'
libtool: install: warning: `modules/loggers/mod_log_config.la' has not been inst
alled in `/usr/local/apache2/modules'
libtool: install: warning: `modules/metadata/mod_env.la' has not been installed
in `/usr/local/apache2/modules'
libtool: install: warning: `modules/metadata/mod_setenvif.la' has not been insta
lled in `/usr/local/apache2/modules'
libtool: install: warning: `modules/http/mod_mime.la' has not been installed in
`/usr/local/apache2/modules'
libtool: install: warning: `modules/generators/mod_status.la' has not been insta
lled in `/usr/local/apache2/modules'
libtool: install: warning: `modules/generators/mod_autoindex.la' has not been in
stalled in `/usr/local/apache2/modules'
libtool: install: warning: `modules/generators/mod_asis.la' has not been install
ed in `/usr/local/apache2/modules'
libtool: install: warning: `modules/generators/mod_cgi.la' has not been installe
d in `/usr/local/apache2/modules'
libtool: install: warning: `modules/mappers/mod_negotiation.la' has not been ins
talled in `/usr/local/apache2/modules'
libtool: install: warning: `modules/mappers/mod_dir.la' has not been installed i
n `/usr/local/apache2/modules'
libtool: install: warning: `modules/mappers/mod_imap.la' has not been installed
in `/usr/local/apache2/modules'
libtool: install: warning: `modules/mappers/mod_actions.la' has not been install
ed in `/usr/local/apache2/modules'
libtool: install: warning: `modules/mappers/mod_userdir.la' has not been install
ed in `/usr/local/apache2/modules'
libtool: install: warning: `modules/mappers/mod_alias.la' has not been installed
in `/usr/local/apache2/modules'

我实在是太郁闷啦!请各位大虾帮忙啊!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
2 [报告]
发表于 2004-05-14 15:49 |只看该作者

装apache的认证模块mod_auth_ldap

configure都没错,install怎么会出错呢,我装的是httpd-2.0.49.tar.gz
你先rm -rf apache2,然后再装试试,我测试过很多系统了都没问题

论坛徽章:
0
3 [报告]
发表于 2004-05-14 17:25 |只看该作者

装apache的认证模块mod_auth_ldap

还是不行啊,make install后还是有:
libtool: install: warning: `modules/aaa/mod_access.la' has not been installed in
`/usr/local/apache2/modules'
libtool: install: warning: `modules/aaa/mod_auth.la' has not been installed in `
/usr/local/apache2/modules'
libtool: install: warning: `modules/filters/mod_include.la' has not been install
ed in `/usr/local/apache2/modules'
libtool: install: warning: `modules/loggers/mod_log_config.la' has not been inst
alled in `/usr/local/apache2/modules'
libtool: install: warning: `modules/metadata/mod_env.la' has not been installed
in `/usr/local/apache2/modules'
libtool: install: warning: `modules/metadata/mod_setenvif.la' has not been insta
lled in `/usr/local/apache2/modules'
libtool: install: warning: `modules/http/mod_mime.la' has not been installed in
`/usr/local/apache2/modules'
libtool: install: warning: `modules/generators/mod_status.la' has not been insta
lled in `/usr/local/apache2/modules'
libtool: install: warning: `modules/generators/mod_autoindex.la' has not been in
stalled in `/usr/local/apache2/modules'
libtool: install: warning: `modules/generators/mod_asis.la' has not been install
ed in `/usr/local/apache2/modules'
libtool: install: warning: `modules/generators/mod_cgi.la' has not been installe
d in `/usr/local/apache2/modules'
libtool: install: warning: `modules/mappers/mod_negotiation.la' has not been ins
talled in `/usr/local/apache2/modules'
libtool: install: warning: `modules/mappers/mod_dir.la' has not been installed i
n `/usr/local/apache2/modules'
libtool: install: warning: `modules/mappers/mod_imap.la' has not been installed
in `/usr/local/apache2/modules'
libtool: install: warning: `modules/mappers/mod_actions.la' has not been install
ed in `/usr/local/apache2/modules'
libtool: install: warning: `modules/mappers/mod_userdir.la' has not been install
ed in `/usr/local/apache2/modules'
libtool: install: warning: `modules/mappers/mod_alias.la' has not been installed
in `/usr/local/apache2/modules'
好像是没有安装什么工具!安装后在modules目录中没有mod_auth_ldap.so
谢谢啦--"per"
还有什么办法吗?
我也成功安装过--在modules目录中有mod_auth_ldap.so,而且在httpd.conf中也写了LoadModule auth_ldap_module modules/mod_auth_ldap.so ,启动是也没有错误,但是我在写AuthLDAPURL 'ldap://.......' 时, 启动就说AuthLDAPURL没有定义
我该怎么办啊??????

论坛徽章:
0
4 [报告]
发表于 2004-05-14 17:29 |只看该作者

装apache的认证模块mod_auth_ldap

我的系统是RedHat linux9.0
apache的包是httpd-httpd-2.0.49

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
5 [报告]
发表于 2004-05-14 21:33 |只看该作者

装apache的认证模块mod_auth_ldap

你configure的时候这样试试./configure  --with-ldap --enable-ldap --enable-auth-ldap

论坛徽章:
0
6 [报告]
发表于 2004-05-17 08:59 |只看该作者

装apache的认证模块mod_auth_ldap

./configure --with-ldap --enable-ldap --enable-auth-ldap
还是不行,还是同样的错误.我想应该就是没有安装什么了吧!!!
还有就是我也成功安装过--在modules目录中有mod_auth_ldap.so,而且在httpd.conf中也写了LoadModule auth_ldap_module modules/mod_auth_ldap.so ,启动是也没有错误,但是我在写AuthLDAPURL 'ldap://.......' 时, 启动就说AuthLDAPURL没有定义
我该怎么办啊??????
感谢你的帮助!!!谢谢!!!

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
7 [报告]
发表于 2004-05-17 13:01 |只看该作者

装apache的认证模块mod_auth_ldap

启动就说AuthLDAPURL没有定义是因为你还没有正确配置openldap

论坛徽章:
0
8 [报告]
发表于 2004-05-17 16:46 |只看该作者

装apache的认证模块mod_auth_ldap

现在我已经安装好了mod_auth_ldap,但是为什么会有这个错误?
怎么决解?谢谢!
httpd failed. The error was: Starting httpd: Syntax error on line 1040 of /etc/httpd/conf/httpd.conf:
Invalid command 'AuthLDAPURL', perhaps mis-spelled or defined by a module not included in the server configuration
[FAILED]

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
9 [报告]
发表于 2004-05-18 09:10 |只看该作者

装apache的认证模块mod_auth_ldap

你httpd.conf文件中没加载mod_auth_ldap,加上它试试。正常情况下在httpd.conf中是不需要LoadModule的,你最后编译apache的时候是怎么做的,configure的时候用的什么参数?

论坛徽章:
0
10 [报告]
发表于 2004-05-19 09:50 |只看该作者

装apache的认证模块mod_auth_ldap

谢谢!
现在装好啦,但是我加上
LDAPSharedCacheSize 200000
LDAPCacheEntries 1024
LDAPCacheTTL 600
LDAPOpCacheEntries 1024
LDAPOpCacheTTL 600
                                                                                
<Location /ldap-status>;
SetHandler ldap-status
Order deny,allow
Deny from all
Allow from 202.203.2.163
AuthLDAPEnabled on
AuthLDAPURL ldap://202.203.2.163/dc=kmu,dc=edu,dc=cn?uid
AuthLDAPAuthoritative on
require valid-user
</Location>;
打开apache的页面后为什么不要求登录?
应该怎么使用认证?
谢谢!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP