Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 454325 - slapd determines hostname by PTR even if host url defined, breaking ServerID
Summary: slapd determines hostname by PTR even if host url defined, breaking ServerID
Alias: None
Product: Fedora
Classification: Fedora
Component: openldap
Version: 9
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jan Safranek
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2008-07-07 17:58 UTC by Joe Julian
Modified: 2008-07-14 08:58 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2008-07-14 08:58:31 UTC

Attachments (Terms of Use)

Description Joe Julian 2008-07-07 17:58:01 UTC
Description of problem:
slapd is called with "-h ldap://ldap1.domain.dom" where ldap1 is a CNAME for the
actual server name "moe.domain.dom" and "-h ldap://ldap2.domain.dom" for

The cn=config entries for olcServerID are "1 ldap://ldap1.domain.dom" and "2

In config_generic (bconfig.c) case CFG_SERVERID lud->lud_host is compared with
global_host. As the PTR record for moe is moe.domain.dom and not
ldap1.domain.dom, moe does not get assigned a serverID.

Version-Release number of selected component (if applicable):

Steps to Reproduce:
1. configure a server's dns entries for the actual name of the server
2. configure a cname that's different
3. call slapd with "-h": the url referring to the cname of the server
Actual results:
no serverID defined

Expected results:
the serverID should be selected based on the "-h" url configuration matching an
olcServerID entry

Additional info:

Comment 1 Jan Safranek 2008-07-14 08:58:31 UTC
This is very specific bug - you seem you know what do you want. Would you be so
kind and report it in upstream bug tracker? Please visit and issue a new bug. No registration
required and all subsequent communication is via e-mail. Thanks in advance!

I can then backport their fix if it's needed.

Note You need to log in before you can comment on or make changes to this bug.