openldap默认情况下无法在phpldapadmin中设置用户的sudo权限,但可以通过以下设置,来实现LDAPSERVER端:安装openssh-ldapyum-yinstallopenssh-ldap拷贝schema文件cp/usr/share/doc/sudo-1.8.6p3/schema.OpenLDAP/etc/openldap/schema/sudo.schema
cp/usr/share/doc/openssh-ld..
分类:
其他好文 时间:
2017-03-27 19:50:14
阅读次数:
320
我部署了LDAPServer,但openldap默认没有保存日志,需要自己配置rsyslog服务来保存日志编辑/etc/rsyslog.conf,加入以下内容,将日志保存在以下路径local4.*/var/log/ldap/openldap.log重启rsyslog服务/etc/init.d/rsyslogrestart由于openldap日志会越来越大,所以需要logrotat..
分类:
其他好文 时间:
2017-03-27 11:59:08
阅读次数:
135
[root@ldap-serveropenldap]#tail-n1/etc/rsyslog.conflocal4.* /var/log/ldap.log[root@ldap-serveropenldap]#/etc/init.d/rsyslogrestart关闭系统日志记录器:[确定]启动系统日志记录器:[确定][root@ldap-serveropenldap]#
分类:
其他好文 时间:
2017-03-25 14:36:18
阅读次数:
183
[root@ldap-serverldap]#cp/usr/share/openldap-servers/DB_CONFIG.example/var/lib/ldap/DB_CONFIG
[root@ldap-serverldap]#chown-Rldap:ldap/etc/openldap/
[root@ldap-serverldap]#chown-Rldap:ldap/var/lib/ldap/
[root@ldap-serverldap]#chmod700/var/lib/ldap/
[root@lda..
分类:
数据库 时间:
2017-03-25 14:35:48
阅读次数:
314
基础环境要求:
1.
[root@ldap-server~]#cat/etc/redhat-release
CentOSrelease6.7(Final)
2.
[root@ldap-server~]#getenforce
Disabled
3.
[root@ldap-server~]#ipaddr
1:lo:<LOOPBACK,UP,LOWER_UP>mtu65536qdiscnoqueuestateUNKNOWN
link/loopback00:00:00:00:00:00brd..
分类:
其他好文 时间:
2017-03-25 12:07:21
阅读次数:
165
yum-yinstallopenldapopenldap-*yum-yinstallnscdnss-pam-ldapdpcrepcre-*yum-yinstallnss-*yum-yinstallnss
分类:
其他好文 时间:
2017-03-25 12:05:07
阅读次数:
157
LDAP的主从同步从2.4版本以后有了很大的改动,新版本的主从同步有5中模式:Syncrepl该方式是slave服务器以拉的方式同步master的用户数据该方式缺点:当你修改一个条目中的一个属性值(or大批量的万级别的某1属性值),它不是简单的同步过来这些属性,而是把修改的条目一起同步..
分类:
其他好文 时间:
2017-03-24 14:34:33
阅读次数:
1326
实例搭建nfs共享1.简单基本安装配置第一步:先配置好ip,然后关闭防火墙Ifconfigeth0172.17.204.131/24//设置IP/24,/24代表子网掩码:255.255.255.0Serviceiptablesstop//关闭防火墙先挂载文件,然后安装“nfs-clietn”人rpm包,也可以用yum安装实现用rpm包安装nfs,先挂载软..
分类:
系统相关 时间:
2017-03-23 22:36:53
阅读次数:
233
第1章思考1.1如何一键使用ansible搭建1.1.1第一步目标首先我们要明确的是我们需要实现的是一键的自动化脚本,既执行一个脚本然后就自动化安装nfs+rsync+sersync,然后让web01自动挂载nfs共享目录,1.1.2第二步关系明确及顺序既然有目标了那么我们需要做的就是我们需要明白自动..
分类:
Web程序 时间:
2017-03-22 11:37:49
阅读次数:
402
一、yum安装#yuminstall-yopenldapopenldap-serversopenldap-clients#rpm-qlopenldap二、配置文件#cp/usr/share/openldap-servers/slapd.conf.obsolete/etc/openldap/slapd.conf#vim/etc/openldap/slapd.conf修改suffix和rootdn,rootpw#slappasswd(可以生成SSHA加密方式的管理..
分类:
其他好文 时间:
2017-03-15 19:24:45
阅读次数:
270