如何配置LimeSurvey与AD集成?

Linux基础

1 介绍

LimeSurvey的插件主要用于从LDAP中导入用户信息,本章完成LimeSurvey的LDAP集成。

2 最佳实践

2.1 环境配置

本章的实践以LimeSurvey的部署就绪为前提条件,如果你尚未部署环境,请参阅以下链接部署,
https://www.cmdschool.org/archives/5120

2.2 配置邮件功能

2.2.1 配置邮件参数

主界面单击【Configuration】->【Global Setings】->【Email Settings】菜单
按照下表配置参数,

邮件参数
参数
Default site admin email limesurvey@cmdschool.org
Administrator name Administrator
Email method SMTP
SMTP host smtp.cmdschool.org
SMTP username limesurvey
SMTP password limesurveypassword
SMTP encryption Off
SMTP debug mode Off
Email batch size 50

注:根据以上参数配置后,单击“Save”即可

2.2.2 测试邮件配置

由于没有提供测试界面,我们将在下一个章节测试。

2.3 配置LDAP插件

2.3.1 进入配置界面

主界面单击【Configuration】->【Setings】->【Plugin Manager】菜单
界面显示如下,

如上图所示,
单击【Activate】后单击【Configure】

2.3.2 配置LDAP连接

需要配置如下参数,

LDAP插件连接参数
参数
LDAP server ad.cmdschool.org
Port number 3268
LDAP version LDAPv3
Select true if referrals must be followed (use false for ActiveDirectory) false
Enable Start-TLS false
Select how to perform authentication Search and bind
Attribute to compare to the given login can be uid, cn, mail, … sAMAccountName
Base DN for the user search operation. Multiple bases may be separated by a semicolon (;) DC=cmdschool,DC=org
Optional extra LDAP filter to be ANDed to the basic (searchuserattribute=username) filter. Don’t forget the outmost enclosing parentheses (&(objectClass=person)(mail=*@cmdschool.org))
Optional DN of the LDAP account used to search for the end-user’s DN. An anonymous bind is performed if empty. CN=admin,CN=Users,DC=cmdschool,DC=org
Password of the LDAP account used to search for the end-user’s DN if previoulsy set. ********
LDAP attribute of email address mail
LDAP attribute of full name cn
Check to make default authentication method as you wish
Automatically create user if it exists in LDAP server true
Grant survey creation permission to automatically created users false
Optional base DN for group restriction leave blank
Optional filter for group restriction leave blank
Allow initial user to login via LDAP true

注:根据以上参数配置后,单击“Save”即可

2.3.3 测试LDAP连接

由于程序没有提供LDAP测试界面,我们借用添加管理员界面测试LDAP的配置,
主界面单击【Configuration】->【Manage Survey Administrators】
界面显示如下,

如上图所示,
单击【Add user】
界面显示如下,

如上图所示,
在“Central database”中选择“LDAP authentication”
在“Username”中输入用户的,例如“wtan”
单击“Save”即可
界面显示如下,

参阅文档
============
https://manual.limesurvey.org/LDAP_settings

没有评论

发表回复

cmd shell
如何忽略PowerShell错误邮件地址?

1 前言 一个问题,一篇文章,一出故事。 笔者使用PowerShell发送邮件时,由于收件人列表包含 …

Linux基础
如何解决KDC不支持加密类型问题?

1 前言 一个问题,一篇文章,一出故事。 笔者最近发现生产环境的sftp域用户登录异常,查看sssd …

Linux基础
如何允许应用倾听低于1000的系统端口?

1 前言 一个问题,一篇文章,一出故事。 笔者集群运行logstash发现它希望在514端口倾听,但 …