[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Multiple Databases and Referrals
> When adding a referrals (but not regular entries),
> enable the ManageDsaIt (-M) control.
>
> Kurt
Thanks !
In the top level database (suffix: application=cc)
using -M succeeded in entering referrals as well as regular entries.
Should -M be used with ldif files which contain ONLY referrals, or
can it be mixed ?
A referral I entered into the toplevel database is:
____
dn: oc=isp001,application=cc
objectClass: referral
ref: ldap://127.0.0.1/oc=isp001,application=cc
_____
In the next step, I am trying to load the second database
(suffix: oc=isp001,application=cc) with the following referral:
____
dn: oc=isp001,application=cc
objectClass: ccService
ccStatus: enabled
dn: auth=admin,oc=isp001,application=cc
objectClass: referral
ref: ldap://127.0.0.1/auth=admin,oc=isp001,application=cc
____
1. I am trying to do this with -M.
Am I right in believing that that won't work because it will treat
the first referral (in the main database) as a regular entry?
2. Am I right in believing that the
dn: oc=isp001,application=cc
entry is not needed because it is already there as a referral in the
main database ? (ldapadd *does* complain that that entry already
exists).
3. Should I use -H ldap://127.0.0.1/oc=isp001,application=cc with
ldapadd to 'help' ldapadd to put it into the right database?
I use -M and it says: Could not create LDAP session handle (3): Time
limit exceeded
(it does that instantaneously, it doesn't look like a whole lot of
timeouting is going on....)
Any help appreciated.
_Ace
>
> At 09:52 PM 2002-08-18, Ace Suares wrote:
> >Hi,
> >
> >I am new to the list. Sorry if my questions are already documented.
> >
> >1. Can you point me to some RTFM about multiple databases and
> >referrals ? I googled a lot, but could only find very little.
> >
> >2. I am trying to use 1 (one) openldap server with multiple
> >databases.
> >
> >Let's say the first database is:
> >suffix: dc=suares,dc=com
> >
> >and the second is:
> >suffix: dc=somethingelse,dc=com
> >
> >and the third is:
> >suffix: dc=com
> >
> >and I want to use the dc=com database to search through dc=*,dc=com,
> >then I need referrals, right ?
> >
> >3. If i use a pseudo-ldif file like:
> >
> >dn: dc=com
> >
> >dn: dc=suares,dc=com
> >objectClass: Referral
> >ref: ldap://127.0.0.1/dc=suares,dc=com
> >
> >dn: dc=somethingelse,dc=com
> >objectClass: Referral
> >ref: ldap://127.0.0.1/dc=somethingelse,dc=com
> >
> >dn: cn=info,dc=somethingelse,dc=com
> >objectClass: person
> >cn: info
> >
> >dn: cn=moreinfo,dc=suares,dc=com
> >objectClass: person
> >cn: info
> >
> >
> >Then I would expect that the first 3 entries go into the dc=com
> >database, the 4th in the dc=somethingelse,dc=com databasem and the
> >last in the dc=suares,dc=com database.
> >
> >Instead, Only the first goes into the dc=com database, the second
> >goes into dc=suares,dc=com, and the third goes into
> >dc=somethingelse,dc=com.
> >
> >These referrals then sit there referring to themselves, and no other
> >records can be entered.
> >
> >I 'solved' this by having a two-stage process that unconfigures the
> >subtree databases, restarts the server, enters the first three
> >entries, then reconfigures the server to hold all databases,
> >restarts the server, and has the last two entries loaded.
> >
> >Why is this happening, is it supposed to happen like this, or do I
> >need to read more on this topic ?
> >
> >4. I also noticed that configuring f.i. the dc=suares,dc=com
> >database so that
> >
> >referral: ldap://127.0.0.1/
> >
> >or
> >
> >referral: ldap://127.0.0.1/dc=com
> >
> >breaks the database. I supposed that subordinate databases needed
> >superior knowledge, but it seems fine to work without the slapd.conf
> >referral directive.
> >
> >I hope any of you has answers to my questions.
> >
> >If anyone can re-phrase my questions to be better understandable, I
> >wouldn't mind.
> >
> >Thanks in advance.
> >
> >--
> >Ace Suares, Internet Consultancy and Training
> >Keizersgracht 132, 1015 CW AMSTERDAM, NL
> >phone: 06 557 06 554 (+31 6 557 06 554) (voicebox)
> >fax: 08 48 707 705 (+31 84 870 770 5)
> >mailto:ace@suares.com http://www.suares.com
>
>
--
Ace Suares, Internet Consultancy and Training
Keizersgracht 132, 1015 CW AMSTERDAM, NL
phone: 06 557 06 554 (+31 6 557 06 554) (voicebox)
fax: 08 48 707 705 (+31 84 870 770 5)
mailto:ace@suares.com http://www.suares.com