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 316239 Details for
Bug 461656
Require creating a user for systems without network auth and without existing users
[?]
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]
patch
firstboot-force.diff (text/plain), 1.64 KB, created by
jmccann
on 2008-09-09 19:02:28 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
jmccann
Created:
2008-09-09 19:02:28 UTC
Size:
1.64 KB
patch
obsolete
>diff --git a/modules/create_user.py b/modules/create_user.py >index 4afe1f5..836d69c 100644 >--- a/modules/create_user.py >+++ b/modules/create_user.py >@@ -61,24 +61,20 @@ class moduleClass(Module): > return RESULT_SUCCESS > > if username == "": >- dlg = gtk.MessageDialog(None, 0, gtk.MESSAGE_WARNING, gtk.BUTTONS_NONE, >- _("It is highly recommended that a personal user account be " >- "created. If you continue without an account, you " >- "can only log in with the root account, which is reserved " >- "for administrative use only.")) >- dlg.set_position(gtk.WIN_POS_CENTER) >- dlg.set_modal(True) >- >- dlg.add_button(_("_Continue"), 0) >- b = dlg.add_button(_("Create _account"), 1) >- b.grab_focus() >- >- rc = dlg.run() >- dlg.destroy() >- >- if rc == 0: >+ # Only allow not creating a user If there is at least >+ # one non-system account already on the system >+ users = self.admin.enumerateUsersFull() >+ has_users = None >+ for u in users: >+ if u.has_key("pw_uid"): >+ if u.get("pw_uid")[0] >= 500: >+ has_users = True >+ break >+ >+ if has_users: > return RESULT_SUCCESS > else: >+ self._showErrorMessage(_("You must create a user account for this system.")) > self.usernameEntry.grab_focus() > return RESULT_FAILURE >
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 461656
: 316239