Bug 675289 - ipa-host-net-manage <ctrl>+C at Directory Manager Prompt produces traceback
Summary: ipa-host-net-manage <ctrl>+C at Directory Manager Prompt produces traceback
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: freeIPA
Classification: Retired
Component: ipa-server
Version: 2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Rob Crittenden
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-04 19:30 UTC by Jenny Severance
Modified: 2015-01-04 23:46 UTC (History)
3 users (show)

Fixed In Version: freeipa-2.1.0-1.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-27 07:22:16 UTC


Attachments (Terms of Use)

Description Jenny Severance 2011-02-04 19:30:29 UTC
Description of problem:
if you try to opt out of ipa-host-net-manager, directory manager password prompt, the command produces traceback.  It does not appear to have any adverse affects.

But I can definitely see this happening often in the following situation.

Admin has kerberos credentials and assumes that is enough for the command, has to go find out what the directory manager's password is ... so interupts!


Version-Release number of selected component (if applicable):

freeipa-server-2.0-0.2011020113git613a3d0.fc14.i686

How reproducible:
always

Steps to Reproduce:
1.  ipa-host-net-manage enable | disable | status
2.  At prompt for Directory Manager password ...  <ctrl>+c
3.
  
Actual results:
# ipa-host-net-manage status
Directory Manager password: 

Traceback (most recent call last):
  File "/usr/sbin/ipa-host-net-manage", line 201, in <module>
    sys.exit(main())
  File "/usr/sbin/ipa-host-net-manage", line 195, in main
    conn.disconnect()
  File "/usr/lib/python2.7/site-packages/ipalib/backend.py", line 74, in disconnect
    self.id, threading.currentThread().getName()
StandardError: disconnect: 'context.ldap2_157230828' does not exist in thread 'MainThread'


Expected results:
no trace back and graceful interupt.

Additional info:

Comment 1 Rob Crittenden 2011-02-04 19:35:30 UTC
https://fedorahosted.org/freeipa/ticket/920

Comment 2 Dmitri Pal 2011-02-23 20:12:45 UTC
master: 76f2d2eac2188fc7929bb07ab6bba7af745e8998

Comment 3 Jenny Severance 2011-04-07 15:57:59 UTC
You can not interrupt the command now - you must hit enter and fail Directory Manager auth ..

# ipa-host-net-manage status
Directory Manager password: 

Authentication failed:  Invalid credentials


verified version:
ipa-server-2.0.0-20.el6.x86_64
ipa-admintools-2.0.0-20.el6.x86_64


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