RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 846309 - Prevent disabling last admin
Summary: Prevent disabling last admin
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa
Version: 6.3
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: Namita Soman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-07 12:18 UTC by Namita Soman
Modified: 2013-02-21 09:17 UTC (History)
2 users (show)

Fixed In Version: ipa-3.0.0-1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-21 09:17:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0528 0 normal SHIPPED_LIVE Low: ipa security, bug fix and enhancement update 2013-02-21 08:22:21 UTC

Description Namita Soman 2012-08-07 12:18:59 UTC
Description of problem:
Using UI was able to disable the last admin. 
As soon as it was disabled - got Internal Server Error

Version-Release number of selected component (if applicable):
freeipa-server-2.99.0-0.20120803T1426Zgit36c4778.fc17.x86_64

How reproducible:
always

Steps to Reproduce:
1. Select admin
2. Click on Disable

  
Actual results:
Error - Internal Server Error
Then cannot access UI nor kinit as admin
# kinit admin
kinit: Clients credentials have been revoked while getting initial credentials


Expected results:
Since this is the last admin, behaviour should be similar to as decided for bug 805233, when deleting last admin

Additional info:

/var/log/httpd/error_log:

[Tue Aug 07 08:10:11 2012] [error] [client 10.16.98.192] DatabaseError: Server is unwilling to perform: Account inactivated. Contact system administrator.
[Tue Aug 07 08:10:20 2012] [error] ipa: INFO: Unhandled LDAPError: {'info': 'Account inactivated. Contact system administrator.', 'desc': 'Server is unwilling to perform'}
[Tue Aug 07 08:10:20 2012] [error] [client 10.16.98.192] mod_wsgi (pid=28823): Exception occurred processing WSGI script '/usr/share/ipa/wsgi.py'.
[Tue Aug 07 08:10:20 2012] [error] [client 10.16.98.192] Traceback (most recent call last):
[Tue Aug 07 08:10:20 2012] [error] [client 10.16.98.192]   File "/usr/share/ipa/wsgi.py", line 49, in application
[Tue Aug 07 08:10:20 2012] [error] [client 10.16.98.192]     return api.Backend.wsgi_dispatch(environ, start_response)
[Tue Aug 07 08:10:20 2012] [error] [client 10.16.98.192]   File "/usr/lib/python2.7/site-packages/ipaserver/rpcserver.py", line 246, in __call__
[Tue Aug 07 08:10:20 2012] [error] [client 10.16.98.192]     return self.route(environ, start_response)
[Tue Aug 07 08:10:20 2012] [error] [client 10.16.98.192]   File "/usr/lib/python2.7/site-packages/ipaserver/rpcserver.py", line 258, in route
[Tue Aug 07 08:10:20 2012] [error] [client 10.16.98.192]     return app(environ, start_response)
[Tue Aug 07 08:10:20 2012] [error] [client 10.16.98.192]   File "/usr/lib/python2.7/site-packages/ipaserver/rpcserver.py", line 830, in __call__
[Tue Aug 07 08:10:20 2012] [error] [client 10.16.98.192]     self.create_context(ccache=ipa_ccache_name)
[Tue Aug 07 08:10:20 2012] [error] [client 10.16.98.192]   File "/usr/lib/python2.7/site-packages/ipalib/backend.py", line 114, in create_context
[Tue Aug 07 08:10:20 2012] [error] [client 10.16.98.192]     self.Backend.ldap2.connect(ccache=ccache)
[Tue Aug 07 08:10:20 2012] [error] [client 10.16.98.192]   File "/usr/lib/python2.7/site-packages/ipalib/backend.py", line 63, in connect
[Tue Aug 07 08:10:20 2012] [error] [client 10.16.98.192]     conn = self.create_connection(*args, **kw)
[Tue Aug 07 08:10:20 2012] [error] [client 10.16.98.192]   File "/usr/lib/python2.7/site-packages/ipalib/encoder.py", line 198, in new_f
[Tue Aug 07 08:10:20 2012] [error] [client 10.16.98.192]     return f(*new_args, **kwargs)
[Tue Aug 07 08:10:20 2012] [error] [client 10.16.98.192]   File "/usr/lib/python2.7/site-packages/ipaserver/plugins/ldap2.py", line 476, in create_connection
[Tue Aug 07 08:10:20 2012] [error] [client 10.16.98.192]     _handle_errors(e)
[Tue Aug 07 08:10:20 2012] [error] [client 10.16.98.192]   File "/usr/lib/python2.7/site-packages/ipaserver/plugins/ldap2.py", line 241, in _handle_errors
[Tue Aug 07 08:10:20 2012] [error] [client 10.16.98.192]     raise errors.DatabaseError(desc=desc, info=info)
[Tue Aug 07 08:10:20 2012] [error] [client 10.16.98.192] DatabaseError: Server is unwilling to perform: Account inactivated. Contact system administrator.
[Tue Aug 07 08:10:27 2012] [error] ipa: INFO: Unhandled LDAPError: {'info': 'Account inactivated. Contact system administrator.', 'desc': 'Server is unwilling to perform'}
[Tue Aug 07 08:10:27 2012] [error] [client 10.16.98.192] mod_wsgi (pid=28769): Exception occurred processing WSGI script '/usr/share/ipa/wsgi.py'.
[Tue Aug 07 08:10:27 2012] [error] [client 10.16.98.192] Traceback (most recent call last):
[Tue Aug 07 08:10:27 2012] [error] [client 10.16.98.192]   File "/usr/share/ipa/wsgi.py", line 49, in application
[Tue Aug 07 08:10:27 2012] [error] [client 10.16.98.192]     return api.Backend.wsgi_dispatch(environ, start_response)
[Tue Aug 07 08:10:27 2012] [error] [client 10.16.98.192]   File "/usr/lib/python2.7/site-packages/ipaserver/rpcserver.py", line 246, in __call__
[Tue Aug 07 08:10:27 2012] [error] [client 10.16.98.192]     return self.route(environ, start_response)
[Tue Aug 07 08:10:27 2012] [error] [client 10.16.98.192]   File "/usr/lib/python2.7/site-packages/ipaserver/rpcserver.py", line 258, in route
[Tue Aug 07 08:10:27 2012] [error] [client 10.16.98.192]     return app(environ, start_response)
[Tue Aug 07 08:10:27 2012] [error] [client 10.16.98.192]   File "/usr/lib/python2.7/site-packages/ipaserver/rpcserver.py", line 830, in __call__
[Tue Aug 07 08:10:27 2012] [error] [client 10.16.98.192]     self.create_context(ccache=ipa_ccache_name)
[Tue Aug 07 08:10:27 2012] [error] [client 10.16.98.192]   File "/usr/lib/python2.7/site-packages/ipalib/backend.py", line 114, in create_context
[Tue Aug 07 08:10:27 2012] [error] [client 10.16.98.192]     self.Backend.ldap2.connect(ccache=ccache)
[Tue Aug 07 08:10:27 2012] [error] [client 10.16.98.192]   File "/usr/lib/python2.7/site-packages/ipalib/backend.py", line 63, in connect
[Tue Aug 07 08:10:27 2012] [error] [client 10.16.98.192]     conn = self.create_connection(*args, **kw)
[Tue Aug 07 08:10:27 2012] [error] [client 10.16.98.192]   File "/usr/lib/python2.7/site-packages/ipalib/encoder.py", line 198, in new_f
[Tue Aug 07 08:10:27 2012] [error] [client 10.16.98.192]     return f(*new_args, **kwargs)
[Tue Aug 07 08:10:27 2012] [error] [client 10.16.98.192]   File "/usr/lib/python2.7/site-packages/ipaserver/plugins/ldap2.py", line 476, in create_connection
[Tue Aug 07 08:10:27 2012] [error] [client 10.16.98.192]     _handle_errors(e)
[Tue Aug 07 08:10:27 2012] [error] [client 10.16.98.192]   File "/usr/lib/python2.7/site-packages/ipaserver/plugins/ldap2.py", line 241, in _handle_errors
[Tue Aug 07 08:10:27 2012] [error] [client 10.16.98.192]     raise errors.DatabaseError(desc=desc, info=info)
[Tue Aug 07 08:10:27 2012] [error] [client 10.16.98.192] DatabaseError: Server is unwilling to perform: Account inactivated. Contact system administrator.

Comment 2 Dmitri Pal 2012-08-07 13:53:21 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/2979

Comment 5 Namita Soman 2012-11-24 22:18:38 UTC
Verified using cli and UI with ipa-server-3.0.0-8.el6.x86_64

When deleting and disabling admin - got error -
admin cannot be deleted or disabled because it is the last member of group admins

Comment 8 errata-xmlrpc 2013-02-21 09:17:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-0528.html


Note You need to log in before you can comment on or make changes to this bug.