Bug 198810
Summary: | unable to change listen address of admin server | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] 389 | Reporter: | Johannes Russek <johannes.russek> | ||||
Component: | Admin | Assignee: | Rich Megginson <rmeggins> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Viktor Ashirov <vashirov> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 1.0 | CC: | rcritten | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i686 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-12-07 16:35:09 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 152373, 240316, 427409 | ||||||
Attachments: |
|
Description
Johannes Russek
2006-07-13 18:57:40 UTC
Ok, did a little triage on it. The bug is in adminserver/admserv/cgi-src40/config.c in the function validate_addr() It looks like it is trying to restrict the IP address to the hostname of the machine (as determined by PR_GetSystemInfo()). So the question is, do we do away with this and let the user hang themselves if they enter the wrong address? Sounds like we should fix it to allow the user to specify any valid IP address or hostname. Not sure what other possible console or other code this may break though. i have no clue about the functions you should or shouldnt use, but what about getifaddrs(), i think it's avaible on linux and freebsd, but i don't know how portable and threadsafe and whatyouneed it is :) regards, johannes russek (In reply to comment #1) > The bug is in adminserver/admserv/cgi-src40/config.c in the function validate_addr() but does this explain the error if i try to change it in the directory itself? regards, johannes russek Created attachment 132402 [details]
Patch to bind to the IP address
Here is one way to do it. PR_Bind to the IP address on a random port. If the
address is valid then we should bind ok. If not it will fail. I'm not sure
whether we care *why* the bind failed but this function doesn't really have the
capability to return an error message so we're a bit limited.
Set to localhost correctly. Verified aginst: 1195517861 redhat-ds-base-8.0.0-11.el5dsrv Mon Nov 19 2007 1195517864 redhat-ds-admin-8.0.0-1.15.el5dsrv Mon Nov 19 2007 1195517865 redhat-ds-console-8.0.0-8.el5dsrv Mon Nov 19 2007 1195517866 redhat-admin-console-8.0.0-9.el5dsrv Mon Nov 19 2007 |