Bug 430000

Summary: Remove hard coded paths
Product: [Retired] freeIPA Reporter: Chandrasekar Kannan <ckannan>
Component: ipa-serverAssignee: Rob Crittenden <rcritten>
Status: CLOSED WONTFIX QA Contact: Chandrasekar Kannan <ckannan>
Severity: high Docs Contact:
Priority: medium    
Version: 1.0CC: benl, jgalipea, mgregg, rcritten, rvokal, ssorce, yzhang
Target Milestone: v2 release   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-09 17:34:10 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: 431020    
Attachments:
Description Flags
List of file references none

Description Chandrasekar Kannan 2008-01-24 06:29:14 UTC
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.

Comment 3 Martin Nagy 2008-08-05 09:34:16 UTC
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.

Comment 4 Martin Nagy 2008-08-05 16:04:55 UTC
Taking the bug.

Comment 8 Rob Crittenden 2010-09-09 17:34:10 UTC
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.