Q1.用slapcat备份ldap数据库,然后用ldapadd导入另一个ldap server时出现:
ldap_add: Constraint violation (10)
additional info: structuralObjectClass: no user modification allowed
A1:
cat >slapcat_ldapadd.ldif </^creatorsName: /d
/^createTimestamp: /d
/^modifiersName: /d
/^modifyTimestamp: /d
/^structuralObjectClass: /d
/^entryUUID: /d
/^entryCSN: /d
EOF
slapcat -v | sed -f slapcat_ldapadd.ldif > save_the_bacon.ldif
[note:]其实用slapcat备份的内容应该用slapadd导入,在slapcat或是slapadd的手册页中可以找到如下一段说明:
The output of slapcat is intended to be used as input to slapadd(8).The output of slapcat cannot generally be used as input to ldapadd(1) or other LDAP clients without first editing the output. This editing would normally include reordering the records into superior first order and removing no-user-modification operational attributes.
Q2.ldapsearch查询一个有30000多条记录时出现:Size limit exceeded 4
A2:
服务器端配置文件有sizelimit 1000的限制!用管理员身份查询-D"cn=...."即可
Q3:将zonefile导入DNS并启动bind时出现服务器启动不起来?
A3:
可能是有些zonefile里有语法错误,查下logfile看看是哪个zonefile
阅读(3724) | 评论(0) | 转发(0) |