Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 295856 Details for
Bug 434852
runnin ipa-server-install with unattended set questions user
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fix unattended installation
freeipa-672-fix-unattended.patch (text/plain), 3.42 KB, created by
Simo Sorce
on 2008-02-25 22:57:51 UTC
(
hide
)
Description:
Fix unattended installation
Filename:
MIME Type:
Creator:
Simo Sorce
Created:
2008-02-25 22:57:51 UTC
Size:
3.42 KB
patch
obsolete
># HG changeset patch ># User Simo Sorce <ssorce@redhat.com> ># Date 1203977778 18000 ># Node ID 23653e34ef7d4a925d90e2d2ecca52f6daff80fa ># Parent 8cc043aa3a58420c4d09b3850865190af49373dc >Fix unattended install > >diff -r 8cc043aa3a58 -r 23653e34ef7d ipa-server/ipa-install/ipa-server-install >--- a/ipa-server/ipa-install/ipa-server-install Thu Feb 21 17:17:05 2008 -0500 >+++ b/ipa-server/ipa-install/ipa-server-install Mon Feb 25 17:16:18 2008 -0500 >@@ -210,34 +210,38 @@ def read_ds_user(): > > return ds_user > >-def read_domain_name(domain_name): >+def read_domain_name(domain_name, unattended): > print "The domain name has been calculated based on the host name." > print "" >- dn = raw_input("Please confirm the domain name ["+domain_name+"]: ") >- print "" >- if dn != "": >- domain_name = dn >+ if not unattended: >+ dn = raw_input("Please confirm the domain name ["+domain_name+"]: ") >+ print "" >+ if dn != "": >+ domain_name = dn > return domain_name > >-def read_realm_name(domain_name): >+def read_realm_name(domain_name, unattended): > print "The kerberos protocol requires a Realm name to be defined." > print "This is typically the domain name converted to uppercase." > print "" > upper_dom = domain_name.upper() >- realm_name = raw_input("Please provide a realm name ["+upper_dom+"]: ") >- print "" >- if realm_name == "": >+ if unattended: > realm_name = upper_dom > else: >- upper_dom = realm_name.upper() >- if upper_dom != realm_name: >- print "It is strongly recommended that you use a completely uppercased name for the realm." >- dom_realm = raw_input("Do you want to use "+upper_dom+" as realm name ? [yes]: ") >- print "" >- if dom_realm and dom_realm.lower()[0] != "y": >- print "WARNING: Using a non upper-cased realm name may cause unexpected problems." >+ realm_name = raw_input("Please provide a realm name ["+upper_dom+"]: ") >+ print "" >+ if realm_name == "": >+ realm_name = upper_dom > else: >- realm_name = upper_dom >+ upper_dom = realm_name.upper() >+ if upper_dom != realm_name: >+ print "It is strongly recommended that you use a completely uppercased name for the realm." >+ dom_realm = raw_input("Do you want to use "+upper_dom+" as realm name ? [yes]: ") >+ print "" >+ if dom_realm and dom_realm.lower()[0] != "y": >+ print "WARNING: Using a non upper-cased realm name may cause unexpected problems." >+ else: >+ realm_name = upper_dom > return realm_name > > def read_dm_password(): >@@ -372,10 +376,9 @@ def main(): > host_name = read_host_name(host_default) > > if not options.domain_name: >- domain_name = host_name[host_name.find(".")+1:] >- domain_name = read_domain_name(domain_name) >- else: >- realm_name = options.realm_name >+ domain_name = read_domain_name(host_name[host_name.find(".")+1:], options.unattended) >+ else: >+ domain_name = options.domain_name > > # Check we have a public IP that is associated with the hostname > ip = resolve_host(host_name) >@@ -423,7 +426,7 @@ def main(): > ds_user = options.ds_user > > if not options.realm_name: >- realm_name = read_realm_name(domain_name) >+ realm_name = read_realm_name(domain_name, options.unattended) > else: > realm_name = options.realm_name >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 434852
: 295856