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

referral problem



Dear Sirs,

I am using OpenLDAP-1.2.9 release.
I am now constructing two LDAP server by using OpenLDAP.

But, I have referral probrem among the servers.

  1. I made a ldap server,  o=org

     ldap1.org
     OpenBSD 2.6 for Sparc, OpenLDAP-1.2.9 release,
     configure --enable-dns, --enable-referrals --prefix=/usr/local/ldap


     -- slapd.conf --
     include         /usr/local/ldap/etc/openldap/slapd.at.conf
     include         /usr/local/ldap/etc/openldap/slapd.oc.conf
     schemacheck     off
     pidfile         /var/run/slapd.pid
     argsfile        /varrun/slapd.args
     database        ldbm
     suffix          "o=org"
     rootdn          "cn=root, o=org"
     rootpw          secret
     directory       /usr/local/ldap/db
     -- 

     ldapadd -D "cn=root, o=org" -w secret < /tmp/org.ldif

     -- org.ldif ---
     dn: o=org
     o: Organization 
     objectclass: organization
     --

     ldapadd -D "cn=root, o=org" -w secret < /tmp/user.ldif

     -- user.ldif --
     dn: cn=User1, o=org
     cn: User Name
     objectclass=person
     --

     slapd -f /usr/local/ldap/etc/openldap/slapd.conf


 2. I made a ldap server, ou=sub, o=org

    ldap2.org
    FreeBSD 3.4R, OpenLDAP-1.2.9 release, 
    configure --enable-dns, --enable-referrals --prefix=/usr/local/ldap    


    -- slapd.conf --
    include         /usr/local/ldap/etc/openldap/slapd.at.conf
    include         /usr/local/ldap/etc/openldap/slapd.oc.conf
    schemacheck     off
    referral        ldap://ldap1.org/o=org
    pidfile         /var/run/slapd.pid
    argsfile        /varrun/slapd.args
    database        ldbm
    suffix          "ou=sub, o=org"
    rootdn          "cn=root, ou=sub, o=org"
    rootpw          secret
    directory       /usr/local/ldap/db
    --

     ldapadd -D "cn=root, ou=sub, o=org" -w secret < /tmp/org.ldif

     -- org.ldif ---
     dn: ou=sub, o=org
     ou: OrganizationUnit 
     objectclass: organizationUnit
     ---

     ldapadd -D "cn=root, o=org" -w secret < /tmp/user.ldif

     -- user.ldif --
     dn: cn=User2, ou=sub, o=org
     cn: User Name2
     objectclass=person
     --

     slapd -f /usr/local/ldap/etc/openldap/slapd.conf

   3. I can search User1 (o=org) on ldap1.org (o=org), 
      User2 (ou=sub, o=org) on ldap2.org (ou=sub, o=org) by using 
      Netscape Messenger.

   4. I search the User1 (in o=org) on ldap2.org (ou=sub, o=org)
      using Netscape Messenger.
      However, the data of User1 can not find.

What's wrong?
I have more settings about referrals?

Thanks in advance.

--
Masashi Yasuda