Bug 127306 - authconfig breaks NIS config when using multiple domains
Summary: authconfig breaks NIS config when using multiple domains
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: authconfig
Version: 3.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks: 170445
TreeView+ depends on / blocked
 
Reported: 2004-07-06 13:00 UTC by Uwe Menges
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-02-01 17:49:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Uwe Menges 2004-07-06 13:00:21 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040514

Description of problem:
# cat /etc/yp.conf
domain server server hsdns01
domain sapdomain2 server hs0yp1

Run authconfig; use NIS (or leave it as NIS). It says
  Domain: server
  Server: hs0yp1,hsdns01

which obviously is wrong. It then writes another wrong /etc/yp.conf:

# cat /etc/yp.conf
domain server server hs0yp1
ypserver hsdns01


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

How reproducible:
Always

Steps to Reproduce:
1. see description.
2.
3.
    

Expected Results:  Don't break handcrafted config files!
Handle multiple domains correctly, present choice of available domains.


Additional info:

Comment 1 Jindrich Novy 2004-08-26 12:39:22 UTC
Dear Uwe,

the version of authconfig behaves correctly with only one NIS domain.
Furthermore the authconfig prefers getting the NIS domain name from
/etc/sysconfig/network than from /etc/yp.conf so the last domain in
the yp.conf was replaced by it. See your /etc/sysconfig/network, where
you have NISDOMAIN=server. The export of authconfig is really a bug
that I'll try to fix. The parser writes hostnames in reversed order in
respect to the original file and any other domain tags except the
first one are written as ypserver.

greetings,
Jindrich

Comment 4 Tomas Mraz 2005-10-14 15:10:16 UTC
Fixed in Fedora core development, authconfig-5.0.2-1, it shouldn't break configs
with multiple domains anymore.


Comment 7 Tomas Mraz 2006-02-01 17:49:31 UTC
This problem will be resolved in a future major release of Red Hat Enterprise
Linux. Red Hat does not currently plan to provide a resolution for this in a Red
Hat Enterprise Linux update for currently deployed systems.

With the goal of minimizing risk of change for deployed systems, and in response
to customer and partner requirements, Red Hat takes a conservative approach when
evaluating changes for inclusion in maintenance updates for currently deployed
products. The primary objectives of update releases are to enable new hardware
platform support and to resolve critical defects.



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