免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 17147 | 回复: 18
打印 上一主题 下一主题

[ldap] openldap2.4 配置后不同步,求大神指导 [复制链接]

论坛徽章:
3
黄金圣斗士
日期:2015-12-01 13:27:34IT运维版块每日发帖之星
日期:2016-04-30 06:20:0015-16赛季CBA联赛之福建
日期:2018-08-10 14:38:43
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-03-13 17:25 |只看该作者 |倒序浏览
本帖最后由 venux 于 2015-03-13 17:29 编辑

主服务器有数据,从服务器没有任何数据 ,配置文件去吧基本在最后几行


这是主服务器配置
  1. # See slapd.conf(5) for details on configuration options.
  2. # This file should NOT be world readable.
  3. #

  4. include                /etc/openldap/schema/corba.schema
  5. include                /etc/openldap/schema/core.schema
  6. include                /etc/openldap/schema/cosine.schema
  7. include                /etc/openldap/schema/duaconf.schema
  8. include                /etc/openldap/schema/dyngroup.schema
  9. include                /etc/openldap/schema/inetorgperson.schema
  10. include                /etc/openldap/schema/java.schema
  11. include                /etc/openldap/schema/misc.schema
  12. include                /etc/openldap/schema/nis.schema
  13. include                /etc/openldap/schema/openldap.schema
  14. include                /etc/openldap/schema/ppolicy.schema
  15. include                /etc/openldap/schema/collective.schema
  16. include                /etc/openldap/schema/sudo.schema
  17. # Allow LDAPv2 client connections.  This is NOT the default.
  18. allow bind_v2

  19. # Do not enable referrals until AFTER you have a working directory
  20. # service AND an understanding of referrals.
  21. #referral        ldap://root.openldap.org

  22. pidfile                /var/run/openldap/slapd.pid
  23. argsfile        /var/run/openldap/slapd.args
  24. loglevel        1
  25. # Load dynamic backend modules
  26. # - modulepath is architecture dependent value (32/64-bit system)
  27. # - back_sql.la overlay requires openldap-server-sql package
  28. # - dyngroup.la and dynlist.la cannot be used at the same time

  29. # modulepath /usr/lib/openldap
  30. # modulepath /usr/lib64/openldap

  31. # moduleload accesslog.la
  32. # moduleload auditlog.la
  33. # moduleload back_sql.la
  34. # moduleload chain.la
  35. # moduleload collect.la
  36. # moduleload constraint.la
  37. # moduleload dds.la
  38. # moduleload deref.la
  39. # moduleload dyngroup.la
  40. # moduleload dynlist.la
  41. # moduleload memberof.la
  42. # moduleload pbind.la
  43. # moduleload pcache.la
  44. # moduleload ppolicy.la
  45. # moduleload refint.la
  46. # moduleload retcode.la
  47. # moduleload rwm.la
  48. # moduleload seqmod.la
  49. # moduleload smbk5pwd.la
  50. # moduleload sssvlv.la
  51. # moduleload syncprov.la
  52. # moduleload translucent.la
  53. # moduleload unique.la
  54. # moduleload valsort.la

  55. # The next three lines allow use of TLS for encrypting connections using a
  56. # dummy test certificate which you can generate by running
  57. # /usr/libexec/openldap/generate-server-cert.sh. Your client software may balk
  58. # at self-signed certificates, however.
  59. #TLSCACertificateFile   /etc/openldap/cacerts/cacert.pem
  60. #TLSCertificateFile      /etc/openldap/cacerts/slapdcert1.pem
  61. #TLSCertificatekeyFile   /etc/openldap/cacerts/slapdkey1.pem
  62. #TLSVerifyClient      never
  63. #TLSCACertificatePath /etc/openldap/certs
  64. #TLSCertificateFile "\"OpenLDAP Server\""
  65. #TLSCertificateKeyFile /etc/openldap/certs/password

  66. # Sample security restrictions
  67. #        Require integrity protection (prevent hijacking)
  68. #        Require 112-bit (3DES or better) encryption for updates
  69. #        Require 63-bit encryption for simple bind
  70. # security ssf=1 update_ssf=112 simple_bind=64

  71. # Sample access control policy:
  72. #        Root DSE: allow anyone to read it
  73. #        Subschema (sub)entry DSE: allow anyone to read it
  74. #        Other DSEs:
  75. #                Allow self write access
  76. #                Allow authenticated users read access
  77. #                Allow anonymous users to authenticate
  78. #        Directives needed to implement policy:
  79. # access to dn.base="" by * read
  80. # access to dn.base="cn=Subschema" by * read
  81. # access to *
  82. #        by self write
  83. #        by users read
  84. #        by anonymous auth
  85. #
  86. # if no access controls are present, the default policy
  87. # allows anyone and everyone to read anything but restricts
  88. # updates to rootdn.  (e.g., "access to * by * read")
  89. #
  90. # rootdn can always read and write EVERYTHING!

  91. # enable on-the-fly configuration (cn=config)
  92. database config
  93. access to *
  94.         by dn.exact="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" manage
  95.         by * none

  96. # enable server status monitoring (cn=monitor)
  97. database monitor
  98. access to *
  99.         by dn.exact="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" read
  100.         by dn.exact="cn=Manager,dc=my-domain,dc=com" read
  101.         by * none

  102. #######################################################################
  103. # database definitions
  104. #######################################################################

  105. database        bdb
  106. suffix                "dc=my-domain,dc=com"
  107. checkpoint        1 1
  108. rootdn                "cn=admin,dc=my-domain,dc=com"
  109. # Cleartext passwords, especially for the rootdn, should
  110. # be avoided.  See slappasswd(8) and slapd.conf(5) for details.
  111. # Use of strong authentication encouraged.
  112. rootpw                secret123
  113. # rootpw                {crypt}ijFYNcSNctBYg
  114. #rootpw        {SSHA}yHrAJ8A5YILvrRcJskhZBTtka87NW8nN

  115. # The database directory MUST exist prior to running slapd AND
  116. # should only be accessible by the slapd and slap tools.
  117. # Mode 700 recommended.
  118. directory        /var/lib/ldap

  119. # Indices to maintain for this database
  120. index objectClass                       eq,pres
  121. index ou,cn,mail,surname,givenname      eq,pres,sub
  122. index uidNumber,gidNumber,loginShell    eq,pres
  123. index uid,memberUid                     eq,pres,sub
  124. index nisMapName,nisMapEntry            eq,pres,sub

  125. # Replicas of this database
  126. #replogfile /var/lib/ldap/openldap-master-replog
  127. #replica host=103.7.220.57:389
  128. #     binddn="cn=admin,dc=my-domain,dc=com"
  129. #     bindmethod=simple credentials=secret123
  130. #
  131. serverID        1

  132. overlay     syncprov
  133. syncrepl    rid=001
  134.    provider=ldap://10.10.2.57:389
  135.    type=refreshAndPersist
  136.    searchbase="dc=my-domain,dc=com"
  137.    bindmethod=simple
  138.    binddn="cn=admin,dc=my-domain,dc=com"
  139.    credentials=secret123
  140.    retry="60 +"
  141. mirrormode on
复制代码
这是从服务器配置
  1. #
  2. # See slapd.conf(5) for details on configuration options.
  3. # This file should NOT be world readable.
  4. #

  5. include                /etc/openldap/schema/corba.schema
  6. include                /etc/openldap/schema/core.schema
  7. include                /etc/openldap/schema/cosine.schema
  8. include                /etc/openldap/schema/duaconf.schema
  9. include                /etc/openldap/schema/dyngroup.schema
  10. include                /etc/openldap/schema/inetorgperson.schema
  11. include                /etc/openldap/schema/java.schema
  12. include                /etc/openldap/schema/misc.schema
  13. include                /etc/openldap/schema/nis.schema
  14. include                /etc/openldap/schema/openldap.schema
  15. include                /etc/openldap/schema/ppolicy.schema
  16. include                /etc/openldap/schema/collective.schema

  17. # Allow LDAPv2 client connections.  This is NOT the default.
  18. allow bind_v2

  19. # Do not enable referrals until AFTER you have a working directory
  20. # service AND an understanding of referrals.
  21. #referral        ldap://root.openldap.org

  22. pidfile                /var/run/openldap/slapd.pid
  23. argsfile        /var/run/openldap/slapd.args

  24. # Load dynamic backend modules
  25. # - modulepath is architecture dependent value (32/64-bit system)
  26. # - back_sql.la overlay requires openldap-server-sql package
  27. # - dyngroup.la and dynlist.la cannot be used at the same time

  28. # modulepath /usr/lib/openldap
  29. # modulepath /usr/lib64/openldap

  30. # moduleload accesslog.la
  31. # moduleload auditlog.la
  32. # moduleload back_sql.la
  33. # moduleload chain.la
  34. # moduleload collect.la
  35. # moduleload constraint.la
  36. # moduleload dds.la
  37. # moduleload deref.la
  38. # moduleload dyngroup.la
  39. # moduleload dynlist.la
  40. # moduleload memberof.la
  41. # moduleload pbind.la
  42. # moduleload pcache.la
  43. # moduleload ppolicy.la
  44. # moduleload refint.la
  45. # moduleload retcode.la
  46. # moduleload rwm.la
  47. # moduleload seqmod.la
  48. # moduleload smbk5pwd.la
  49. # moduleload sssvlv.la
  50. # moduleload syncprov.la
  51. # moduleload translucent.la
  52. # moduleload unique.la
  53. # moduleload valsort.la

  54. # The next three lines allow use of TLS for encrypting connections using a
  55. # dummy test certificate which you can generate by running
  56. # /usr/libexec/openldap/generate-server-cert.sh. Your client software may balk
  57. # at self-signed certificates, however.
  58. #TLSCACertificateFile /home/weijx/myca/cacert.pem
  59. #TLSCertificateFile  /home/weijx/myca/ldapcert.pem
  60. #TLSCertificateKeyFile /home/weijx/myca/ldapkey.pem
  61. #TLSCACertificatePath /etc/openldap/certs
  62. #TLSCertificateFile "\"OpenLDAP Server\""
  63. #TLSCertificateKeyFile /etc/openldap/certs/password

  64. # Sample security restrictions
  65. #        Require integrity protection (prevent hijacking)
  66. #        Require 112-bit (3DES or better) encryption for updates
  67. #        Require 63-bit encryption for simple bind
  68. # security ssf=1 update_ssf=112 simple_bind=64

  69. # Sample access control policy:
  70. #        Root DSE: allow anyone to read it
  71. #        Subschema (sub)entry DSE: allow anyone to read it
  72. #        Other DSEs:
  73. #                Allow self write access
  74. #                Allow authenticated users read access
  75. #                Allow anonymous users to authenticate
  76. #        Directives needed to implement policy:
  77. # access to dn.base="" by * read
  78. # access to dn.base="cn=Subschema" by * read
  79. # access to *
  80. #        by self write
  81. #        by users read
  82. #        by anonymous auth
  83. #
  84. # if no access controls are present, the default policy
  85. # allows anyone and everyone to read anything but restricts
  86. # updates to rootdn.  (e.g., "access to * by * read")
  87. #
  88. # rootdn can always read and write EVERYTHING!

  89. # enable on-the-fly configuration (cn=config)
  90. database config
  91. access to *
  92.         by dn.exact="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" manage
  93.         by * none

  94. # enable server status monitoring (cn=monitor)
  95. database monitor
  96. access to *
  97.         by dn.exact="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" read
  98.         by dn.exact="cn=Manager,dc=my-domain,dc=com" read
  99.         by * none

  100. #######################################################################
  101. # database definitions
  102. #######################################################################

  103. database        bdb
  104. suffix                "dc=my-domain,dc=com"
  105. checkpoint        1 1
  106. rootdn                "cn=admin,dc=my-domain,dc=com"
  107. # Cleartext passwords, especially for the rootdn, should
  108. # be avoided.  See slappasswd(8) and slapd.conf(5) for details.
  109. # Use of strong authentication encouraged.
  110. rootpw        secret123
  111. # rootpw                {crypt}ijFYNcSNctBYg

  112. # The database directory MUST exist prior to running slapd AND
  113. # should only be accessible by the slapd and slap tools.
  114. # Mode 700 recommended.
  115. directory        /var/lib/ldap

  116. # Indices to maintain for this database
  117. index objectClass                       eq,pres
  118. index ou,cn,mail,surname,givenname      eq,pres,sub
  119. index uidNumber,gidNumber,loginShell    eq,pres
  120. index uid,memberUid                     eq,pres,sub
  121. index nisMapName,nisMapEntry            eq,pres,sub

  122. # Replicas of this database
  123. #replogfile /var/lib/ldap/openldap-master-replog
  124. #replica host=ldap-1.example.com:389 starttls=critical
  125. #     bindmethod=sasl saslmech=GSSAPI
  126. #     authcId=host/ldap-master.example.com@EXAMPLE.COM
  127. #include         /etc/openldap/schema/sudo.schema


  128. serverID        2

  129. overlay    syncprov

  130. syncrepl   rid=001
  131.    provider=ldap://10.10.2.56:389
  132.    type=refreshAndPersist
  133.    searchbase="dc=my-domain,dc=com"
  134.    bindmethod=simple
  135.    binddn="cn=admin,dc=my-domain,dc=com"
  136.    credentials=secret123
  137.    retry="60 +"

  138. mirrormode on
复制代码

论坛徽章:
24
天蝎座
日期:2014-05-13 18:05:59IT运维版块每日发帖之星
日期:2015-11-26 06:20:00操作系统版块每月发帖之星
日期:2015-12-02 14:57:54IT运维版块每月发帖之星
日期:2016-01-07 23:01:56IT运维版块每周发帖之星
日期:2016-01-07 23:04:2615-16赛季CBA联赛之青岛
日期:2016-01-23 07:58:272016猴年福章徽章
日期:2016-02-18 15:30:3415-16赛季CBA联赛之北控
日期:2016-03-23 14:20:06IT运维版块每日发帖之星
日期:2016-04-01 06:20:0015-16赛季CBA联赛之吉林
日期:2016-06-28 13:51:54IT运维版块每日发帖之星
日期:2016-07-01 06:20:00IT运维版块每日发帖之星
日期:2015-11-23 06:20:00
2 [报告]
发表于 2015-03-14 08:08 |只看该作者
本帖最后由 woxizishen 于 2015-03-14 08:52 编辑

1.看你这情况是想做镜像互备模式,楼主一来就玩openldap2.4的第二种同步方式,是不是有点走太快了。我有发布过openldap2.4最基本的Syncrep第一种l方式同步,貌似都没人回帖,就懒得写了。后面还有4种同步Delta-syncrepl,N-Way Multi-Master ,MirrorMode  ,Syncrepl Proxy,和一种高可用的同步方式)。


2.言归正传,竟然你是做镜像互备,咋给你贴出配置,还有你那长篇符会吓坏没有配置过人的。同步配置没那么长。。。。。重要的给你说明,简单的就不讲了。俺这贴出来的可是网上绝版,毕竟研究这块的人少。

同步方式二:鏡像雙機同步(在我眼里镜像互备,没有主从之分)
主機一:
(全局參數)
serverID 001                        主机id(鏡像模式的master主機不能相同)
(syncrepl参数)
syncrepl rid=000                  rid号,两台机器一致
provider=ldap://172.16.9.132:389        對端主機IP,後面端口號如果默認389可以取消冒號後面內容。
type=refreshAndPersist            同步機制設定
(refreshAndPersist 同步模式, 提供者使用基于推模式的同步.任何一台主機修改數據,并符合設定的參數,,將主動同步數據到對端主機上,另外一種模式refreshOnly,這種屬於拉模式
這裡推就是主動發送數據,這裡拉就理解成為從別的地方獲取數據)
retry="5 5 300 +"                      同步更新重試次數和時間。
(5 5
Mean:前5秒中重試5次,也就是一秒就重試一次
300 +
Mean:5秒過後,每300秒重試一次,直到成功為止。如果不希望一直無限的去重試,可以設定成這樣,後面跟上一個+.
retry=”60 10 300 10
mean:60秒內重複10次,60秒后-300秒內重複10次,如果仍不成功,則停止重試。)
searchbase="dc=kingbright,dc=com"           
attrs="*,+"                           
bindmethod=simple                                         
binddn="cn=root,dc=kingbright,dc=com"         
credentials=3Eg+gKegvZ73HYz5c2c5JA==        
mirrormode on                                 

主数据库的syncrepl 提供者
overlay syncprov                               後端工作在overlay模式下                  
syncprov-checkpoint 100 10              同步的滿足條件
當滿足修改100個條目或10分鐘進行同步一次。



主機二:
全局參數
serverID 002                主机id(所有鏡像模式的master主機不能相同)
syncrepl参数
syncrepl rid=000           rid号,两台机器一致

provider=ldap://172.16.9.132:389        
type=refreshAndPersist                     
  retry="5 5 300 +"
  searchbase="dc=kingbright,dc=com"            
  attrs="*,+"
  bindmethod=simple                          
  binddn="cn=root,dc=kingbright,dc=com"         
  credentials=3Eg+gKegvZ73HYz5c2c5JA==      
mirrormode on                                
overlay syncprov                                
syncprov-checkpoint 100 10           






如果按照上面的配置,仔细检查,还是无法同步,那么继续,肯定同步这一块的配置是没问题了,(俺觉得你要检查下你的2边ldap相关服务到底有没有启动起来,同步目录的权限,是否同步的端口被防火墙拦截了等):
將你自认为的主服務器停止,然後将/var/lib/ldap(以你的实际目录数据存放位置为准)已經建立好的數據全部複製到对端服務器對應的目錄下。別忘記複製過來的文件宿主權限全部要改成LDAP。操作完成后,將2边的ldap服務器全部重新啟動下。如果还不行,请同步时候,把同步出错的日志贴出来。如果搞定了你可以试着做下面这种模式

















注意:如果同步的服务器不在一个公司,强烈建议你用LDAPS加密方式同步,不然嘿嘿~你那数据就是在网上裸奔!你那个同步密钥连暗文都不是,充其量就是防君子的,不要我说的太明白了。













论坛徽章:
3
白羊座
日期:2014-08-25 15:04:112014年中国系统架构师大会
日期:2014-10-14 15:59:002015元宵节徽章
日期:2015-03-06 15:52:30
3 [报告]
发表于 2015-03-14 12:58 来自手机 |只看该作者
有空好好学习一下版主总结

论坛徽章:
3
黄金圣斗士
日期:2015-12-01 13:27:34IT运维版块每日发帖之星
日期:2016-04-30 06:20:0015-16赛季CBA联赛之福建
日期:2018-08-10 14:38:43
4 [报告]
发表于 2015-03-16 12:33 |只看该作者
本帖最后由 venux 于 2015-03-16 12:37 编辑

回复 2# woxizishen


    还是不行啊,没开防火墙,服务都起了,   日志里也没写什么东西,就记录了重启的日志。


/etc/openldap/slapd.conf
loglevel        4095

/etc/rsyslog.conf
local4.*                                                /var/log/ldap.log


论坛徽章:
3
黄金圣斗士
日期:2015-12-01 13:27:34IT运维版块每日发帖之星
日期:2016-04-30 06:20:0015-16赛季CBA联赛之福建
日期:2018-08-10 14:38:43
5 [报告]
发表于 2015-03-16 13:54 |只看该作者
本帖最后由 venux 于 2015-03-16 17:21 编辑

回复 2# woxizishen


    是不是有什么功能我没打开呢  



我重新编译安装了一次,这次有日志了  ,但是报错了

论坛徽章:
24
天蝎座
日期:2014-05-13 18:05:59IT运维版块每日发帖之星
日期:2015-11-26 06:20:00操作系统版块每月发帖之星
日期:2015-12-02 14:57:54IT运维版块每月发帖之星
日期:2016-01-07 23:01:56IT运维版块每周发帖之星
日期:2016-01-07 23:04:2615-16赛季CBA联赛之青岛
日期:2016-01-23 07:58:272016猴年福章徽章
日期:2016-02-18 15:30:3415-16赛季CBA联赛之北控
日期:2016-03-23 14:20:06IT运维版块每日发帖之星
日期:2016-04-01 06:20:0015-16赛季CBA联赛之吉林
日期:2016-06-28 13:51:54IT运维版块每日发帖之星
日期:2016-07-01 06:20:00IT运维版块每日发帖之星
日期:2015-11-23 06:20:00
6 [报告]
发表于 2015-03-16 20:04 |只看该作者
回复 5# venux

./configure --enable-ldap --enable-accesslog --enable-syncprov –with-tls=openssl
#上述configure後面的三個參數是開啟新版openldap同步複製功能,不加上的話,默認只
開啟syncprov,所以這個--enable-syncprov參數你可加也可以不加。

编译时候有没有加上我上述的参数?

   

论坛徽章:
3
黄金圣斗士
日期:2015-12-01 13:27:34IT运维版块每日发帖之星
日期:2016-04-30 06:20:0015-16赛季CBA联赛之福建
日期:2018-08-10 14:38:43
7 [报告]
发表于 2015-03-17 10:02 |只看该作者
回复 6# woxizishen


    我的编译参数是这样的 ,我在重新编译一次试试

./configure --prefix=/usr/local/openldap --enable-syslog --enable-modules --with-tls CPPFLAGS=-I/usr/local/BerkeleyDB.4.8/include/ LDFLAGS=-L/usr/local/BerkeleyDB.4.8/lib/

论坛徽章:
24
天蝎座
日期:2014-05-13 18:05:59IT运维版块每日发帖之星
日期:2015-11-26 06:20:00操作系统版块每月发帖之星
日期:2015-12-02 14:57:54IT运维版块每月发帖之星
日期:2016-01-07 23:01:56IT运维版块每周发帖之星
日期:2016-01-07 23:04:2615-16赛季CBA联赛之青岛
日期:2016-01-23 07:58:272016猴年福章徽章
日期:2016-02-18 15:30:3415-16赛季CBA联赛之北控
日期:2016-03-23 14:20:06IT运维版块每日发帖之星
日期:2016-04-01 06:20:0015-16赛季CBA联赛之吉林
日期:2016-06-28 13:51:54IT运维版块每日发帖之星
日期:2016-07-01 06:20:00IT运维版块每日发帖之星
日期:2015-11-23 06:20:00
8 [报告]
发表于 2015-03-17 10:49 |只看该作者
回复 7# venux

你的编译没加同步复制功能,默认就只能使用最原始的同步方式,后面的镜像同步等方式都无法使用的。
   

论坛徽章:
3
黄金圣斗士
日期:2015-12-01 13:27:34IT运维版块每日发帖之星
日期:2016-04-30 06:20:0015-16赛季CBA联赛之福建
日期:2018-08-10 14:38:43
9 [报告]
发表于 2015-03-17 12:08 |只看该作者
回复 8# woxizishen


    ./configure --prefix=/usr/local/openldap24 --enable-ldap --enable-accesslog --enable-syncprov  --enable-syslog --enable-modules --with-tls=openssl CPPFLAGS=-I/usr/local/BerkeleyDB.4.8/include/ LDFLAGS=-L/usr/local/BerkeleyDB.4.8/lib/



这是新的参数 ,还是不行,  搞死了




论坛徽章:
24
天蝎座
日期:2014-05-13 18:05:59IT运维版块每日发帖之星
日期:2015-11-26 06:20:00操作系统版块每月发帖之星
日期:2015-12-02 14:57:54IT运维版块每月发帖之星
日期:2016-01-07 23:01:56IT运维版块每周发帖之星
日期:2016-01-07 23:04:2615-16赛季CBA联赛之青岛
日期:2016-01-23 07:58:272016猴年福章徽章
日期:2016-02-18 15:30:3415-16赛季CBA联赛之北控
日期:2016-03-23 14:20:06IT运维版块每日发帖之星
日期:2016-04-01 06:20:0015-16赛季CBA联赛之吉林
日期:2016-06-28 13:51:54IT运维版块每日发帖之星
日期:2016-07-01 06:20:00IT运维版块每日发帖之星
日期:2015-11-23 06:20:00
10 [报告]
发表于 2015-03-17 19:26 |只看该作者
本帖最后由 woxizishen 于 2015-03-17 19:35 编辑

回复 9# venux

从你的日志可以看出,你这台openldap服务器根本连不到对端的openldap服务器。看到你那个ldap_sasl报-1错误啦了没,你离成功不远啦,不知道你看谁的架设教材,从头到尾这里漏点,哪里漏点,把俺累到了。



1.日志可以明确判断本台openldap服务器与对端的openldap服务器无法通信。所以一直重试。
1.1 请再次确定你2边的openldap服务器的389端口都开啦。然后把2边的openldap服务器的防火墙都给关掉测试先。
1.2 请使用正确的方式初始化bdb数据库,ldapadd -x -D "cn=xxxx,dc=xx.king,dc=com” -W –f  test.ldif (-x不要漏掉了)


如果没有ldap_sasl报-1错误啦,连接成功会显示如下图所示界面


已经陪你走下来了,剩下的小伙子就不难啦,仔细检查下。
   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP