千家信息网

openldap中数据库配置的示例分析

发表于:2025-11-08 作者:千家信息网编辑
千家信息网最后更新 2025年11月08日,这篇文章主要介绍openldap中数据库配置的示例分析,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完![root@ldap-server ldap]# cp /usr/share
千家信息网最后更新 2025年11月08日openldap中数据库配置的示例分析

这篇文章主要介绍openldap中数据库配置的示例分析,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!

[root@ldap-server ldap]# cp /usr/share/openldap-servers/DB_CONFIG.example /var/lib/ldap/DB_CONFIG[root@ldap-server ldap]# chown -R ldap:ldap /etc/openldap/[root@ldap-server ldap]# chown -R ldap:ldap /var/lib/ldap/[root@ldap-server ldap]# chmod 700  /var/lib/ldap/[root@ldap-server ldap]#[root@ldap-server ldap]# ls  /var/lib/ldap/DB_CONFIG[root@ldap-server ldap]# slaptest  -uconfig file testing succeeded[root@ldap-server ldap]#最终的配置文件[root@ldap-server ldap]# egrep -v '^#|^.*#'  /etc/openldap/slapd.confinclude/etc/openldap/schema/corba.schemainclude/etc/openldap/schema/core.schemainclude/etc/openldap/schema/cosine.schemainclude/etc/openldap/schema/duaconf.schemainclude/etc/openldap/schema/dyngroup.schemainclude/etc/openldap/schema/inetorgperson.schemainclude/etc/openldap/schema/java.schemainclude/etc/openldap/schema/misc.schemainclude/etc/openldap/schema/nis.schemainclude/etc/openldap/schema/openldap.schemainclude/etc/openldap/schema/ppolicy.schemainclude/etc/openldap/schema/collective.schemaallow bind_v2pidfile/var/run/openldap/slapd.pidargsfile/var/run/openldap/slapd.argsTLSCACertificatePath /etc/openldap/certsTLSCertificateFile "\"OpenLDAP Server\""TLSCertificateKeyFile /etc/openldap/certs/passwordaccess to *    #此处需要修改,原来的一部分删除by self writeby anonymous authby * readdatabasebdbsuffix"dc=etiantian,dc=org"checkpoint2048 10rootdn"cn=admin,dc=etiantian,dc=org"loglevel296cachesize1000directory/var/lib/ldapindex objectClass                       eq,presindex ou,cn,mail,surname,givenname      eq,pres,subindex uidNumber,gidNumber,loginShell    eq,presindex uid,memberUid                     eq,pres,subindex nisMapName,nisMapEntry            eq,pres,subrootpw{SSHA}+OjqniWD7vyzN9D9vRbYRE6KvI3Hjrw1启动ldap[root@ldap-server ldap]# /etc/init.d/slapd  restart停止 slapd:                                               [失败]正在启动 slapd:                                           [确定][root@ldap-server ldap]#[root@ldap-server ldap]# chkconfig  slapd  on[root@ldap-server ldap]# chkconfig --list  slapdslapd          0:关闭1:关闭2:启用3:启用4:启用5:启用6:关闭[root@ldap-server ldap]#[root@ldap-server ldap]# lsof -i:389COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAMEslapd   1470 ldap    7u  IPv4  11434      0t0  TCP *:ldap (LISTEN)slapd   1470 ldap    8u  IPv6  11435      0t0  TCP *:ldap (LISTEN)[root@ldap-server ldap]#[root@ldap-server ldap]# ps -ef |grep ldapldap       1470      1  0 10:53 ?        00:00:00 /usr/sbin/slapd -h  ldap:/// ldapi:/// -u ldaproot       1481   1287  0 10:55 pts/0    00:00:00 grep ldap[root@ldap-server ldap]#[root@ldap-server ldap]# tail -f /var/log/ldap.logMar 25 10:59:51 ldap-server slapd[1603]: @(#) $OpenLDAP: slapd 2.4.40 (May 10 2016 23:30:49) $#012#011mockbuild@worker1.bsys.centos.org:/builddir/build/BUILD/openldap-2.4.40/openldap-2.4.40/build-servers/servers/slapd启动校验是否正确:[root@ldap-server ldap]# ldapsearch -LLL  -W  -x -H ldap://etiantian.org  -D "cn=admin,dc=etiantian,dc=org"  -b "dc=etiantian,dc=org"Enter LDAP Password:ldap_bind: Invalid credentials (49)[root@ldap-server ldap]#解决办法:root@ldap-server ldap]# rm -rf /etc/openldap/slapd.d/*[root@ldap-server ldap]# slaptest   -f /etc/openldap/slapd.conf  -F  /etc/openldap/slapd.d[root@ldap-server ldap]# chown  -R ldap:ldap  /etc/openldap/[root@ldap-server ldap]# /etc/init.d/slapd  restart停止 slapd:                                               [确定]正在启动 slapd:                                           [确定][root@ldap-server ldap]#[root@ldap-server ldap]# ldapsearch -LLL  -W  -x -H ldap://etiantian.org  -D "cn=admin,dc=etiantian,dc=org"  -b "dc=etiantian,dc=org"Enter LDAP Password:No such object (32)  #表示正确[root@ldap-server ldap]#

以上是"openldap中数据库配置的示例分析"这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注行业资讯频道!

配置 数据 数据库 示例 分析 内容 正在 篇文章 价值 兴趣 办法 小伙 小伙伴 文件 更多 知识 行业 资讯 资讯频道 频道 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 违法网络安全法第46条规定 天涯明月刀捏脸数据库 Excel计数数据库 原点参数网站数据库要钱吗 计算机网络技术学哪个好 idea数据库包放在哪里 千峰教育网络安全 服务器怎么清除硬盘数据 从jsp中如何使用数据库 双路机架服务器直销价格 设计数据库需要的软件 飞机网络安全标准 网站服务器配置单 细分领域网络安全图 网络安全作文英语作文100 谷歌打开网页提示服务器错误 关于进行网络安全检查的通知 计算机网络技术哪里有学校 数据库单表分组查询 北京 安全接入服务器地址 计算机网络技术学哪个好 网络安全为人民服务的手抄报 用户跨数据库连接 看数据库脚本用什么工具看 共建网络安全共手抄报图片 尘斯网络技术工作室 软件技术和计算机网络技术专业 剑侠世界3手游忘记服务器怎么办 中国人民网络安全法第六条 路由器搭建服务器如何防护
0