Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 846309 - Prevent disabling last admin
Prevent disabling last admin
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa (Show other bugs)
6.3
Unspecified Unspecified
high Severity unspecified
: rc
: ---
Assigned To: Rob Crittenden
Namita Soman
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-07 08:18 EDT by Namita Soman
Modified: 2013-02-21 04:17 EST (History)
2 users (show)

See Also:
Fixed In Version: ipa-3.0.0-1.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-02-21 04:17:07 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0528 normal SHIPPED_LIVE Low: ipa security, bug fix and enhancement update 2013-02-21 03:22:21 EST

  None (edit)
Description Namita Soman 2012-08-07 08:18:59 EDT
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 09:53:21 EDT
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/2979
Comment 5 Namita Soman 2012-11-24 17:18:38 EST
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 04:17:07 EST
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.