twiki配置ldap账户认证

阅读: 评论:0

twiki配置ldap账户认证

twiki配置ldap账户认证

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

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

准备工作:

   1,twiki能够正常访问

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

         =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的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











本文发布于:2024-02-01 13:39:06,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170676594636993.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

下一篇:Twiki 6.0.1安装
标签:账户   twiki   ldap
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23