twiki配置ldap账户认证

应该是网上第一篇中文写的较详细的介绍,因为在配置过程中未找到相关中文资料。

仅完成账户登录认证功能,其他高级功能未涉及。

准备工作:

   1,twiki能够正常访问

   2,安装Ldap相关的plugin包,可在extension处直接安装,或者去twiki.org下载zip包

         http://twiki.org/cgi-bin/view/Plugins/SearchByTags?tag=ldap

安装ldap plugin

   1,这里安装的zip包,LdapContrib.zip, LdapNgPlugin.zip,LdapPlugin.zip,NewUserPlugin.zip,解压在twiki安装路径就好了。

配置

   1,Security setup 选择,图表来自网络

AuthenticationLoginManagerTWiki::LoginManager::TemplateLogin
User MappingUserMappingManagerTWiki::Users::LdapUserMapping
PasswordsPasswordManagerTWiki::Users::LdapUser
    2,

Ldap Hostldap.mydomain.comldap的host,用实际的ldap server
Ldap Post389Ldap server port number
Ldap Version3Ldap version. Should only be changed if an older version of Ldap is used.
Ldap Basedc=mydomain,dc=comldap的base
Ldap BindDNCN=yourname,DC=mydomain,DC=coml
可以访问ldap server的用户
Ldap Bindpasswordpassword对应上面账户的用户密码

3,接下来配了这几行

Ldap UserBasedc=mydomain,dc=com 
Ldap LoginFilterobjectClass=user这个看ldap的配置了,使用相应的名字
Ldap LoginAttributecn 
Ldap WikiNameAttributename 

4,group没设,

   需要删空,不能留个无效的group

5,在终端运行

cd <twiki-install-path>/bin && ./view refreshldap=on Main/WebHome >/dev/null

chown -R apache.apache <twiki-install-path>/working

6,应该就可以用ldap的账户密码登陆了

7,为了拿到更新后的ldap账户密码需要设置一个定时任务

5 0 * * * cd <twiki-install-path>/bin && ./view refreshldap=on Main/WebHome >/dev/null


8,Done











  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值