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

Multi-dbs and Referral



I'm trying to create 3 suffixes (databases) and "gluing" 2 of the suffixes
using referrals in the 3rd suffix. The 3rd database with suffix "c=sg" is
the db to tie db1 (org1) and db2 (org2) together.

I'm getting "Failed to search 'x.x.x.x', due to LDAP error 'Referral hop
limit exceed'" error when performing a ldap search with base "c=sg" using
Netscape Address Book.

Pls kindly help to review my config files below and advise where have I gone
wrong.

Thanks for your advice and time.

##slapd.conf
database ldbm
suffix  "o=org1"
rootdn  "cn=rootdn,o=org1"
rootpw  secret
directory /var/lib/ldap/org1

database ldbm
suffix  "o=org2"
rootdn  "cn=rootdn,o=org2"
rootpw  secret
directory /var/lib/ldap/org2

database ldbm
suffix  "c=sg"
rootdn  "cn=rootdn,c=sg"
rootpw  secret
directory /var/lib/ldap/root


#org1.ldif
dn: o=org1
objectclass: organization
o: org1

dn: cn=ldapadmin,o=org1
objectclass: person
objectclass: inetorgperson
sn: ldapadmin
cn: ldapadmin
mail: ldapadmin@org1
userpassword: secret

##org2.ldif
dn: o=org2
objectclass: organization
o: org2

dn: cn=ldapadmin,o=org2
objectclass: person
objectclass: inetorgperson
sn: ldapadmin
cn: ldapadmin
mail: ldapadmin@org2
userpassword: secret

##root.ldif
dn: c=sg
objectclass: country
c: singapore

dn: ref="x.x.x.x/o=org1",c=sg
objectclass: referral
ref: ldap://x.x.x.x/o=org1

dn: ref="x.x.x.x/o=org2",c=sg
objectclass: referral
ref: ldap://x.x.x.x/o=org2