搭建ldap自助修改密码系统--Self Service Password

服务安装:

  安装依赖:yum install php70-ldap.x86_64 -y (版本尽量大于5.3,否则会提示更新php程序)
                 yum install httpd -y
  安装Self Service Password:yum install https://ltb-project.org/rpm/6Server/noarch/self-service-password-1.1-1.el6.noarch.rpm

        配置apache: /etc/httpd/conf.d/self-service-password.conf
            NameVirtualHost *:80
<VirtualHost *:80>
        ServerName ssp.xinniu.com

        DocumentRoot /usr/share/self-service-password
        DirectoryIndex index.php

        AddDefaultCharset UTF-8
   <Directory "/usr/share/self-service-password">
            AllowOverride None
            Allow from all
 </Directory>
        LogLevel warn
        ErrorLog /var/log/httpd/ssp_error_log
        CustomLog /var/log/httpd/ssp_access_log combined
</VirtualHost>

配置Self Service Password,支持密码修改和邮件重置: vim /usr/share/self-service-password/conf/config.inc.php

这个文件配置项太多了,只写一下改动的

$ldap_url = "ldap://172.xx.xx.xx:389";
$ldap_starttls = false;
$ldap_binddn = "cn=admin,dc=xxxx,dc=com";
$ldap_bindpw = "****";
$ldap_base = "dc=xxxx,dc=com";
$ldap_login_attribute = "uid";
$ldap_fullname_attribute = "cn";
$ldap_filter = "(&(objectClass=person)($ldap_login_attribute={login}))";
$mail_from = "[email protected]";
$mail_from_name = "Self Service Password";
$mail_signature = "";

$notify_on_change = true;
 https://github.com/PHPMailer/PHPMailer)
$mail_sendmailpath = ‘/usr/sbin/sendmail‘;
$mail_protocol = ‘smtp‘;
$mail_smtp_debug = 0;
$mail_debug_format = ‘html‘;
$mail_smtp_host = ‘localhost‘;
$mail_smtp_auth = true;
$mail_smtp_user = ‘[email protected]‘;
$mail_smtp_pass = ‘xxxxx;
$mail_smtp_port = 25;

keyphrase = "secret";

配完后
service httpd start

原文地址:https://blog.51cto.com/xiaolanlan/2429921

时间: 2024-08-05 20:47:50

搭建ldap自助修改密码系统--Self Service Password的相关文章

centos7搭建LDAP

centos7搭建LDAP 一.安装Openldap [[email protected] ~]# yum install -y openldap openldap-clients openldap-servers migrationtools 二.配置项 [[email protected] ~]# vim /etc/openldap/slapd.d/cn\=config/olcDatabase\=\{2\}hdb.ldif # AUTO-GENERATED FILE - DO NOT EDI

【Servlet】根据MVC思想设计用户登陆、用户注册、修改密码系统

MVC不是一种像C.JAVA的编程语言,也不是一种像Ajax,Servlet的技术,只是一种如同面向对象一样编程思想.近年来MVC一直很火,赞者批者有之,然后大篇幅的文章很多,可是简明扼要的简单MVC的例子几乎没有.在JSP领域一直向鼓风机地猛吹SSH如何如何地好,一直怒批JSP,Servlet等如何如何差.其实使用JSP+Servlet同样可以利用MVC思想来完成一个系统.下面用一个烂得不能再烂的例子,你步入网页编程必须学会的东西,登陆.注册.修改密码系统,来说明这种编程思想. 一.基本目标

linux环境搭建ldap服务器

首先保证linux正常联网 yum install openldap-servers -y 拷贝配置文件 cd /usr/share/openldap-servers/ cp slapd.conf.obsolete /etc/openldap/slapd.conf 创建LDAP管理员密码 slappasswd 输入123456为例 New password: Re-enter new password: {SSHA}lqzYtHq/qszjRAPzvI+d08JNBAmZ9TWS 编辑slapd

【Struts2+Hibernate3+Spring3】利用SSH整合,完成打印用户表,用户登录、注册、修改密码系统

本文视图尽可能不杂糅其它技术,尽可能少写代码,完成SSH整合.以致于各位在现有网上资料越来越天花龙凤之下,清晰地了解到传说中的三大框架SSH是怎么整合的. 一.SSH的下载 首先SSH的下载就已经是一个难点.SSH三个地方同时推出各自的新技术,已经要求利用Maven完成其版本的同步.毕竟Spring的版本,决定其能整合什么版本的Struts与Hibernate.Spring3.0.5就不能整合Hibernate4.x了.因此本文选取的SSH的版本,分别为struts 2.3.20 GA.Hibe

Self Service Password 密码策略

1.在活动目录中新建一个用户,并赋予域管理员权限:2.拷贝conf目录下的config.inc.php为config.inc.local.php:3.按自己的实际情况及要求修改config.inc.local.php文件中的相关参数,说明如下: <?php #============================================================================== # LTB Self Service Password # # Copyright

比Gitlab更易搭建的自助Git服务———gogs!

大家都认为Gitlab是一个很棒的Git托管服务,几乎像GitHub一样强大.但是,还有一款产品能够和Gitlab/Github媲美且操作更简单,没错,它就是Gogs.该项目沿用了GitHub Go 语言,而且Gogs的四位主要开发者都是中国人哦,小编我的自豪感油然而生啊! Gogs是什么?   Gogs是一款极易搭建的自助 Git 服务.它的目标是打造一个用最简单.最快速.最轻松的方式搭建自助 Git 服务.使用 Go 语言开发让Gogs能够通过独立的二进制进行分发,并且支持 Go 语言支持的

2020年,手把手教你如何在CentOS7上一步一步搭建LDAP服务器的最新教程

同步滚动:关 什么是LDAP 什么是LDAP? 要想知道一个概念,最简单的办法就是wikipedia,当然也可以百科. LDAP全称是轻型目录访问协议(Lightweight Directory Access Protocol)是一个开放的,中立的,工业标准的应用协议,通过IP协议提供访问控制和维护分布式信息的目录信息. 简单理解起来就是LADP包含一个数据库存储了树状结构组织数据,和一套协议,第三方可通过这套协议进行数据的查询与搜索的功能. 它用的协议基于X.500标准的轻量级目录访问协议,是

Centos7.0搭建LDAP服务

一.安装环境 Centos7.0 关闭selinux,firewalld [[email protected] ~]# vim /etc/selinux/config [[email protected] ~]# systemctl stop firewalld.service [[email protected] ~]# systemctl disable firewalld.service 二.服务搭建 1.安装LDAP服务器和客户端,以及migrationtools工具包 [[email 

Windows 下搭建LDAP服务器

五一闲来没事,加上项目正在进行UAT.抽空研究了一下LDAP相关知识.随手做一个记录. 为了方便阅读还是先介绍一下什么是LDAP? 前言.Lightweight Directory Access Protocol: The Lightweight Directory Access Protocol , or LDAP ,is an application protocol for querying and modifying directory services running over TCP