[Date Prev][Date Next] [Chronological] [Thread] [Top]

Question about chain and reference



Hello all,

1. about reference
Q:There are two ldap servers. 
  One is 192.168.0.10, and has a reference to ldap://192.168.0.20/dc=uid,dc=example,dc=com
  The Other is 192.168.0.20. And in the slapd.conf file set "referral 192.168.0.10"
  Start both of these two ldap servers.
  Add entries(dc=example,dc=com) to 192.168.0.10  OK!
  Both of these two ldap server have the same DIT struct. 
  When add the entry(dc=example,dc=com) to 192.168.0.20, there is a problemn. List as follows:

     adding new entry "dc=example,dc=com"
     ldapadd: update failed: dc=example,dc=com
     ldap_add: Referral (10)
             referrals:
                     ldap://192.168.0.10/dc=example,dc=com

   Then, it need to remove the "referral 192.168.0.10" from slapd.conf from 192.168.0.20. Add the entry. It's OK.

   What's the problemn? Am I doing it in the right way?

2.About the chain
Q:Set the chain overlay on 192.168.0.10. Add folling in the slapd.conf

   overlay         chain
   chain-idassert-bind
                bindmethod=simple
                binddn="cn=Proxy,dc=example,dc=com"
                credentials=secret
                mode=self

   When I on one client connect to the 192.168.0.10 using a "cn=Manager,dc=example,dc=com". Because the mode is "self". 192.168.0.10 should use "cn=Manager,dc=example,dc=com" to connet to 192.168.0.20. But 192.168.0.10 using "NULL" to connect to 192.168.0.20. Why? How to fix it?


Thank you very much!

Waiting for your kind help!

Best regards, 
  
sparklezou
sparklezou@hotmail.com
2005-10-14