Ticket #47 (new defect) Opened 3 months ago Last modified 3 months ago Remove hard coded paths Reported by: kmacmill Assigned to: rcritten Priority: major Milestone: release-2 Component: ipa-server Version: Keywords: Cc: Description ¶ Now, onto some uglier stuff. I poked further at what changes would be required for hardcoded paths and what I found isn't pretty. We have a slew of references to /usr/ in there, from the installer to runtime components. I think at least we should centralize this into one or two places (/etc/ipa/ipa.conf or some ipaconfig.py file). The files affected are, at a minimum: ./ipa-gui/ipa-webgui ./ipa-install/ipa-server-install ./ipa-install/share/kdc.conf.template ./ipa-install/test/Makefile ./ipaserver/dsinstance.py ./xmlrpc-server/funcs.py ./xmlrpc-server/ipa.conf ./xmlrpc-server/ipaxmlrpc.py ./xmlrpc-server/test/README Most of these are: sys.path.append("/usr/share/ipa/") The two init files (ipa-webgui and ipa-kpasswd) both refer to /usr/sbin. rob Change History 2007-10-17 12:54:31 changed by kmacmill ¶ * milestone set to milestone-5. 2007-10-31 14:29:43 changed by rcritten ¶ * milestone changed from milestone-5 to release-2.
Created attachment 313438 [details] List of file references Here's a list of files that we use. I've made it practically by hand so there most probably will be some mistakes or some files missing.
Taking the bug.
The IPA code itself is just a management framework and expects things to be in certain places. Trying to configure this seems like a solution looking for a problem. It seems unlikely that someone would relocate this.