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

Referral & alias



Hi everybody,
I have some probelms in getting the following DIT working.

Here is slapd.conf:

include         /usr/local/ldap/etc/openldap/slapd.at.conf
include         /usr/local/ldap/etc/openldap/slapd.oc.conf
schemacheck     off
pidfile         /usr/local/ldap/var/slapd.pid
argsfile        /usr/local/ldap/var/slapd.args

database        ldbm
suffix          "o=SUBORG, o=ORG"
directory       /usr/local/ldap/directories/SUBORG
rootdn          "cn=root, o=SUBORG, o=ORG"
rootpw          ****
sizelimit       1000

database        ldbm
suffix          "o=ORG"
directory       /usr/local/ldap/directories/ORG
rootdn          "cn=root, o=ORG"
rootpw          ****
sizelimit       10000

First I succesfully filled "o=SUBORG, o=ORG" with some entries.
Than I tried to tie the 2 trees togheter.

I've done an ldapadd of the following entries on "o=ORG":

dn: o=ORG
objectclass: organization
o:ORG

dn: ref="ldap://192.168.234.10/o=SUBORG,o=ORG";, o=ORG
objectclass: referral
ref: "ldap://192.168.234.10/o=SUBORG,o=ORG";

then I tried

# ldapsearch -b o=ORG objectclass=\*

getting

o=ORG
objectclass=organization
o=ORG
ldap_search: Partial results and referral received
ldap_search: additional info: Referral:
"ldap://192.168.234.10/o=SUBORG,o=ORG";

I would like to get all the entries below "o=ORG" by an "ldapsearch -b
o=ORG" (including entris below "o=SUBORG, o=ORG").
Pheraps I must use aliases instead of referrals, but I don't know how :(
Of course, I've missed something ...

My configuration: SuSE Linux 5.3 (Kernel 2.0.35), OpenLDAP 1.2.3

Thanks a lot in advanced.
(and sorry for poor english)

ciao
Michele De Martin