免费注册 查看新帖 |

Chinaunix

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

[ldap] 新手请教Apache使用LDAP验证的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-04-28 13:08 |只看该作者 |倒序浏览
很多用户,mail=xxx@ggg.net,virtualDomain=ggg.net,o=extmailAccount,dc=extmail.org
mail=xxx@ggg.net有uid,userPassword等属性

在httpd.conf里怎么写
能使用xxx或者xxx@ggg.net进行验证?

谢谢了先!

论坛徽章:
0
2 [报告]
发表于 2010-05-01 21:57 |只看该作者
肯定是可以的,具体你可以看看iRedMail,他的组件awstat,就是采用ldap的apache的验证方式。

http://code.google.com/p/iredmail/downloads/list

论坛徽章:
0
3 [报告]
发表于 2010-05-05 09:54 |只看该作者
回复 1# leo_ss_pku_cu
vi /etc/httpd/conf.d/application_auth.conf

        <Location /AppsDir>;
        AuthType Basic
        AuthName "Please login"
            
        AuthLDAPEnabled on
        AuthLDAPAuthoritative on
        AuthLDAPURL "ldap://localhost/dc=YourComp?uid?sub?(objectClass=*)"
    </Location>;
  
    <Location /AppsDir/dir1>;
        require group cn=grp1,dc=YourComp
    </Location>;
   
    <Location /AppsDir/dir2>;
        require group cn=grp2,dc=YourComp
    </Location>;
  
    <Location /AppsDir/dir3>;
        require group cn=grp1,dc=YourComp cn=grp3,dc=YourComp
    </Location>;

论坛徽章:
0
4 [报告]
发表于 2010-06-01 14:45 |只看该作者
回复  leo_ss_pku_cu
vi /etc/httpd/conf.d/application_auth.conf

        ;
        AuthType Basi ...
mjwdj 发表于 2010-05-05 09:54



很有用!    非常感谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP