随笔分类 -  ldap

摘要:摘要: 对openldap进行备份时,直接使用slapcat命令进行备份,使用ldapadd还原出现问题及解决。介绍: 对openldap进行备份时,直接使用slapcat命令进行备份(如代码一),然后使用ldapadd还原会出现以下报错信息: ldap_add: Constraint vio... 阅读全文
posted @ 2013-10-08 08:57 长城的草 阅读(13655) 评论(0) 推荐(0)
摘要:安装:Install the openldap, openldap-servers, and openldap-clients RPMs.Edit the /etc/openldap/slapd.conf file to specify the LDAP domain and server. Ref... 阅读全文
posted @ 2013-09-27 10:40 长城的草 阅读(682) 评论(0) 推荐(0)
摘要:/** * ldap 备份 * @param int $cardid * @param string $username * @param string $password 未加密密码 * @return null */function ldapBack($cardid,$username,$password){ $connect = ldap_connect(LDAP_HOST,LDAP_PORT); if(!$connect){ $log = Logger::getLogger(); $log->fatal('备份LDAP连接失败!'); ... 阅读全文
posted @ 2013-09-27 10:39 长城的草 阅读(925) 评论(0) 推荐(0)
摘要:http://www.server-world.info/en/note?os=CentOS_5&p=ldap&f=3 阅读全文
posted @ 2013-09-27 10:38 长城的草 阅读(192) 评论(0) 推荐(0)
摘要:导出数据:slapcat-lexport.ldif 阅读全文
posted @ 2013-09-27 10:37 长城的草 阅读(122) 评论(0) 推荐(0)
摘要:Q2.ldapsearch查询一个有30000多条记录时出现:Size limit exceeded 4A2:服务器端配置文件有sizelimit 1000的限制!用管理员身份查询-D"cn=...."即可http://www.ldapadministrator.com/forum/viewtopi... 阅读全文
posted @ 2013-09-27 10:33 长城的草 阅读(391) 评论(0) 推荐(0)
摘要:1、安装#安装yum install -y openldap-servers openldap-clients openldap-devel 2、复制配置文件#复制配置文件cp /usr/share/openldap-servers/DB_CONFIG.example /var/lib/ldap/D... 阅读全文
posted @ 2013-09-23 09:41 长城的草 阅读(619) 评论(0) 推荐(1)
摘要:原文地址: http://www.linuxfly.org/post/569/ 好久以前曾写过[原]LDAP服务介绍一文,其中介绍了LDAP服务的基本情况。最近,因项目原因,需要对某个ldap 数据库进行修改和迁移的工作,目前已基本完成。特此机会,把在bash和php 中操作ldap 的注意事项简单... 阅读全文
posted @ 2012-08-18 21:10 长城的草 阅读(12224) 评论(0) 推荐(1)