Bug 211226
Summary: | authconfig makes broken yp.conf with multiple nis servers | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Shawn Starr <sstarr> |
Component: | authconfig | Assignee: | Tomas Mraz <tmraz> |
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | juanino, s.traylen, tao, vanhoof |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-10-20 10:30:30 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Shawn Starr
2006-10-17 22:03:36 UTC
I am confused about this patch: --- authconfig-4.6.10/authinfo.c.multiple-nis 2005-02-10 17:26:38.000000000 +0100 +++ authconfig-4.6.10/authinfo.c 2005-08-04 12:03:22.000000000 +0200 @@ -1610,6 +1610,14 @@ l = strlen(" domain ") + strlen(" broadcast "); l += info->nisDomain ? strlen(info->nisDomain) : 0; l += info->nisServer ? strlen(info->nisServer) : 0; + /* we need space for all the NIS servers */ + if (non_empty(info->nisServer)) { + p = info->nisServer; + while ((p=strchr(p, ',')) != NULL) { + l += strlen("ypserver ") + 1; + p++; + } + } obuf = g_malloc0(st.st_size + 1 + l); p = ibuf; Why would additional servers use 'ypserver' when that indicates local machine? That's how it were always configured, this patch doesn't change this. It just fixes completely broken output when the yp.conf was empty. ypserver is used for the default domain and as we don't support multiple domains in authconfig UI it should not matter. The manpage mentions you do support multiple servers for one NIS domain. Is this a bug then in the manpage? No, it should work, because the one NIS domain is set as local (default) domain and thus the servers in the ypserver should be contacted for this domain. |